28 lines
675 B
JavaScript
28 lines
675 B
JavaScript
describe('Index', function () {
|
|
it("shouldn't apply URL and URLSearchParams on import", () => {
|
|
expect(global.REACT_NATIVE_URL_POLYFILL).toBeUndefined();
|
|
|
|
require('../index');
|
|
|
|
expect(global.REACT_NATIVE_URL_POLYFILL).toBeUndefined();
|
|
});
|
|
|
|
it('should export setupURLPolyfill', () => {
|
|
const imports = require('../index');
|
|
|
|
expect(imports.setupURLPolyfill).toBeDefined();
|
|
});
|
|
|
|
it('should export URL', () => {
|
|
const imports = require('../index');
|
|
|
|
expect(imports.URL).toBeDefined();
|
|
});
|
|
|
|
it('should export URLSearchParams', () => {
|
|
const imports = require('../index');
|
|
|
|
expect(imports.URLSearchParams).toBeDefined();
|
|
});
|
|
});
|