MCPcopy
hub / github.com/webpack/webpack / index.js

File index.js

test/cases/resolving/data-uri/index.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1it("should require js module from base64 data-uri", function () {
2 const mod = require("data:text/javascript;charset=utf-8;base64,ZXhwb3J0IGNvbnN0IG51bWJlciA9IDQyOwpleHBvcnQgZnVuY3Rpb24gZm4oKSB7CiAgcmV0dXJuICJIZWxsbyB3b3JsZCI7Cn0=");
3 expect(mod.number).toBe(42);
4 expect(mod.fn()).toBe("Hello world");

Callers

nothing calls this directly

Calls 3

itFunction · 0.50
requireFunction · 0.50
fnMethod · 0.45

Tested by

no test coverage detected