We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4203b32 commit 3e559e9Copy full SHA for 3e559e9
test/unit/browser/pages/vscode.test.ts
@@ -75,6 +75,18 @@ describe("vscode", () => {
75
76
expect(nlsConfig._resolvedLanguagePackCoreLocation).not.toBe(undefined)
77
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
+ */
90
91
_document.body.removeChild(mockElement)
92
})
0 commit comments