Skip to content

Commit 3e559e9

Browse files
committed
wip: add notes
1 parent 4203b32 commit 3e559e9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/browser/pages/vscode.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ describe("vscode", () => {
7575

7676
expect(nlsConfig._resolvedLanguagePackCoreLocation).not.toBe(undefined)
7777
expect(nlsConfig.loadBundle).not.toBe(undefined)
78+
// TODO@jsjoeio write the tests here
79+
// 1. call nlsConfig.loadBundle()
80+
// 2. check that fetch was called
81+
// 3. check that the callback was called and has the right json
82+
// 4. call it again and calls the callback with the cached json
83+
/*
84+
A couple unknowns still...
85+
86+
I need to figure out how to mock the fetch call.
87+
88+
Once I do that, I can write the tests.
89+
*/
7890

7991
_document.body.removeChild(mockElement)
8092
})

0 commit comments

Comments
 (0)