MCPcopy
hub / github.com/webpack/webpack / load

Function load

test/cases/chunks/import-context/index.js:24–33  ·  view source on GitHub ↗
(name, expected, callback)

Source from the content-addressed store, hash-verified

22
23it("should be able to use expressions in import", function(done) {
24 function load(name, expected, callback) {
25 import("./dir/" + name).then(function(result) {
26 expect(result).toEqual(nsObj({
27 default: expected
28 }));
29 callback();
30 }).catch(function(err) {
31 done(err);
32 });
33 }
34 testCase(load, done);
35});

Callers 1

testCaseFunction · 0.70

Calls 2

nsObjFunction · 0.50
callbackFunction · 0.50

Tested by

no test coverage detected