style: fix linting issues
This commit is contained in:
parent
e82374ae2b
commit
ea5e48b48b
|
@ -168,7 +168,7 @@ function createMockFn(implementation = undefined) {
|
||||||
if (typeof implementation === 'function') {
|
if (typeof implementation === 'function') {
|
||||||
return implementation(...args);
|
return implementation(...args);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
Object.defineProperty(mockFn, 'calls', {
|
Object.defineProperty(mockFn, 'calls', {
|
||||||
get() {
|
get() {
|
||||||
return calls;
|
return calls;
|
||||||
|
|
|
@ -15,7 +15,7 @@ function createNMFResolveCompilerObject(resolveData) {
|
||||||
tap: normalModuleFactory_resolve_tap
|
tap: normalModuleFactory_resolve_tap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const normalModuleFactory_tap = utils.createMockFn(function (name, callback) {
|
const normalModuleFactory_tap = utils.createMockFn(function (name, callback) {
|
||||||
callback(normalModuleFactory);
|
callback(normalModuleFactory);
|
||||||
|
@ -27,13 +27,13 @@ function createNMFResolveCompilerObject(resolveData) {
|
||||||
tap: normalModuleFactory_tap,
|
tap: normalModuleFactory_tap,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
compiler,
|
compiler,
|
||||||
normalModuleFactory_tap,
|
normalModuleFactory_tap,
|
||||||
normalModuleFactory_resolve_tap,
|
normalModuleFactory_resolve_tap,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
describe.only('path shim', () => {
|
describe.only('path shim', () => {
|
||||||
|
@ -324,8 +324,6 @@ describe.only('path shim', () => {
|
||||||
// Mocks
|
// Mocks
|
||||||
const {
|
const {
|
||||||
compiler,
|
compiler,
|
||||||
normalModuleFactory_tap,
|
|
||||||
normalModuleFactory_resolve_tap,
|
|
||||||
} = createNMFResolveCompilerObject(resolveDataIn);
|
} = createNMFResolveCompilerObject(resolveDataIn);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
|
|
Loading…
Reference in New Issue