webpack/test/cases/parsing/import-define/index.js

13 lines
279 B
JavaScript

import define from "./module";
const i = x => x;
it("should allow to import a variable named define (call)", () => {
expect(define()).toBe("ok");
});
it("should allow to import a variable named define (expression)", () => {
const d = i(define);
expect(d()).toBe("ok");
});