Skip to content

Commit c0579bc

Browse files
remove change we don't need right now
1 parent 44e5060 commit c0579bc

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

src/testing/mocks.ts

+36-36
Original file line numberDiff line numberDiff line change
@@ -164,40 +164,40 @@ export function mockWindow(html: string = null) {
164164
* @param mod is an override module that you can supply to set particular values
165165
* @returns a module object ready to use in tests!
166166
*/
167-
export const mockModule = (mod: Partial<Module> = {}): Module => ({
168-
cmps: [],
169-
coreRuntimeApis: [],
170-
collectionName: '',
171-
dtsFilePath: '',
172-
excludeFromCollection: false,
173-
externalImports: [],
174-
htmlAttrNames: [],
175-
htmlTagNames: [],
176-
htmlParts: [],
177-
isCollectionDependency: false,
178-
isLegacy: false,
179-
jsFilePath: '',
180-
localImports: [],
181-
originalImports: [],
182-
originalCollectionComponentPath: '',
183-
potentialCmpRefs: [],
184-
sourceFilePath: '',
185-
staticSourceFile: '',
186-
staticSourceFileText: '',
187-
sourceMapPath: '',
188-
sourceMapFileText: '',
189-
190-
// build features
191-
hasVdomAttribute: false,
192-
hasVdomClass: false,
193-
hasVdomFunctional: false,
194-
hasVdomKey: false,
195-
hasVdomListener: false,
196-
hasVdomPropOrAttr: false,
197-
hasVdomRef: false,
198-
hasVdomRender: false,
199-
hasVdomStyle: false,
200-
hasVdomText: false,
201-
hasVdomXlink: false,
202-
...mod,
167+
export const mockModule = (mod: Partial<Module> = {}): Module => ({
168+
cmps: [],
169+
coreRuntimeApis: [],
170+
collectionName: '',
171+
dtsFilePath: '',
172+
excludeFromCollection: false,
173+
externalImports: [],
174+
htmlAttrNames: [],
175+
htmlTagNames: [],
176+
htmlParts: [],
177+
isCollectionDependency: false,
178+
isLegacy: false,
179+
jsFilePath: '',
180+
localImports: [],
181+
originalImports: [],
182+
originalCollectionComponentPath: '',
183+
potentialCmpRefs: [],
184+
sourceFilePath: '',
185+
staticSourceFile: '',
186+
staticSourceFileText: '',
187+
sourceMapPath: '',
188+
sourceMapFileText: '',
189+
190+
// build features
191+
hasVdomAttribute: false,
192+
hasVdomClass: false,
193+
hasVdomFunctional: false,
194+
hasVdomKey: false,
195+
hasVdomListener: false,
196+
hasVdomPropOrAttr: false,
197+
hasVdomRef: false,
198+
hasVdomRender: false,
199+
hasVdomStyle: false,
200+
hasVdomText: false,
201+
hasVdomXlink: false,
202+
...mod,
203203
});

src/testing/testing-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export function shuffleArray(array: any[]) {
2323
return array;
2424
}
2525

26-
export function expectFiles(sys: d.CompilerSystem, filePaths: string[]) {
26+
export function expectFiles(fs: d.InMemoryFileSystem, filePaths: string[]) {
2727
filePaths.forEach((filePath) => {
28-
sys.statSync(filePath);
28+
fs.sys.statSync(filePath);
2929
});
3030
}
3131

0 commit comments

Comments
 (0)