Skip to content

Commit c305a19

Browse files
authored
did changes in the test file as well for the changes done in thr zh_cn value in localstorage
1 parent a71cdc7 commit c305a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/__tests__/languagebox.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ describe("LanguageBox Class", () => {
171171
expect(hideSpy).toHaveBeenCalled();
172172
});
173173

174-
it("should set language to zhCN and call hide when zhCN_onclick is called", () => {
174+
it("should set language to zh_CN and call hide when zhCN_onclick is called", () => {
175175
const hideSpy = jest.spyOn(languageBox, "hide").mockImplementation();
176176

177177
languageBox.zhCN_onclick();
178178

179-
expect(languageBox._language).toBe("zhCN");
179+
expect(languageBox._language).toBe("zh_CN");
180180
expect(hideSpy).toHaveBeenCalled();
181181
});
182182

0 commit comments

Comments
 (0)