describe('react-native', function () {
  it('just re-exports the global functions', function () {
    const globalFetch = global.fetch = function globalFetch () {}
    const globalHeaders = global.Headers = function globalHeaders () {}
    const globalRequest = global.Request = function globalRequest () {}
    const globalResponse = global.Response = function globalResponse () {}

    const { fetch, Request, Response, Headers } = require('../../dist/react-native-ponyfill')

    expect(fetch).to.equal(globalFetch)
    expect(Headers).to.equal(globalHeaders)
    expect(Request).to.equal(globalRequest)
    expect(Response).to.equal(globalResponse)

    delete global.fetch
    delete global.Headers
    delete global.Request
    delete global.Response
  })
})

describe('react-native', function () {
  it('just re-exports the global functions', function () {
    const globalFetch = global.fetch = function globalFetch () {}
    const globalHeaders = global.Headers = function globalHeaders () {}
    const globalRequest = global.Request = function globalRequest () {}
    const globalResponse = global.Response = function globalResponse () {}

    const { fetch, Request, Response, Headers } = require('../../dist/react-native-ponyfill')

    expect(fetch).to.equal(globalFetch)
    expect(Headers).to.equal(globalHeaders)
    expect(Request).to.equal(globalRequest)
    expect(Response).to.equal(globalResponse)

    delete global.fetch
    delete global.Headers
    delete global.Request
    delete global.Response
  })

  it('doesn\'t touch the global functions when polyfilling', function () {
    const globalFetch = global.fetch = function globalFetch () {}
    const globalHeaders = global.Headers = function globalHeaders () {}
    const globalRequest = global.Request = function globalRequest () {}
    const globalResponse = global.Response = function globalResponse () {}

    require('../../dist/react-native-polyfill')

    expect(fetch).to.equal(globalFetch)
    expect(Headers).to.equal(globalHeaders)
    expect(Request).to.equal(globalRequest)
    expect(Response).to.equal(globalResponse)

    delete global.fetch
    delete global.Headers
    delete global.Request
    delete global.Response
  })
})

Add a test case for the no-op react-native polyfill
[test] Add a test case for the no-op react-native polyfill
