MCPcopy
hub / github.com/webpack/webpack / expectAOnly

Function expectAOnly

test/cases/parsing/evaluate/index.js:81–85  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

79
80it("should try to evaluate new RegExp()", function () {
81 function expectAOnly (r) {
82 r.keys().forEach(key => {
83 expect(r(key)).toBe(1);
84 });
85 }
86
87 expectAOnly(
88 require.context("./regexp", false, new RegExp("(?<!filtered)\\.js$", ""))

Callers 1

index.jsFile · 0.85

Calls 3

keysMethod · 0.65
rFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected