fix(ci): bump deps + fix tests

This commit is contained in:
liyasthomas
2021-09-14 23:43:20 +05:30
parent 1dfc8e2973
commit 96bcbc80f8
3 changed files with 559 additions and 557 deletions

View File

@@ -15,16 +15,16 @@ describe("getEditorLangForMimeType", () => {
expect(getEditorLangForMimeType("text/html")).toMatch("html")
})
test("returns 'plain_text' for plain text mime", () => {
expect(getEditorLangForMimeType("text/plain")).toMatch("plain_text")
test("returns 'text/x-yaml' for plain text mime", () => {
expect(getEditorLangForMimeType("text/plain")).toMatch("text/x-yaml")
})
test("returns 'plain_text' for unimplemented mimes", () => {
expect(getEditorLangForMimeType("image/gif")).toMatch("plain_text")
test("returns 'text/x-yaml' for unimplemented mimes", () => {
expect(getEditorLangForMimeType("image/gif")).toMatch("text/x-yaml")
})
test("returns 'plain_text' for null/undefined mimes", () => {
expect(getEditorLangForMimeType(null)).toMatch("plain_text")
expect(getEditorLangForMimeType(undefined)).toMatch("plain_text")
test("returns 'text/x-yaml' for null/undefined mimes", () => {
expect(getEditorLangForMimeType(null)).toMatch("text/x-yaml")
expect(getEditorLangForMimeType(undefined)).toMatch("text/x-yaml")
})
})