Skip to content

Commit ecd2c30

Browse files
committed
test: - Specify parameter type in setCurrentCacheFile()
1 parent abcd40e commit ecd2c30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/__mocks__/obsidian.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { App, CachedMetadata, Reference } from 'obsidian';
2+
import type { SimulatedFile } from '../Obsidian/SimulatedFile';
23

34
export {};
45

@@ -133,7 +134,7 @@ function caseInsensitiveSubstringSearch(searchTerm: string, phrase: string): Sea
133134

134135
let mockedFileData: any = {};
135136

136-
export function setCurrentCacheFile(mockData: any) {
137+
export function setCurrentCacheFile(mockData: SimulatedFile) {
137138
mockedFileData = mockData;
138139
}
139140

0 commit comments

Comments
 (0)