Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/react-native-url-polyfill/__tests__/index-test.js
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

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();
});
});