refactor: move hoppscotch-common tests to vitest (#3154)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { describe, expect, test } from "vitest"
|
||||
import { getEditorLangForMimeType } from "../editorutils"
|
||||
|
||||
describe("getEditorLangForMimeType", () => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { describe, test, expect } from "vitest"
|
||||
import jsonParse from "../jsonParse"
|
||||
|
||||
describe("jsonParse", () => {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { vi, beforeEach, describe, expect, test } from "vitest"
|
||||
import { getPlatformSpecialKey } from "../platformutils"
|
||||
|
||||
describe("getPlatformSpecialKey", () => {
|
||||
let platformGetter
|
||||
|
||||
beforeEach(() => {
|
||||
platformGetter = jest.spyOn(navigator, "platform", "get")
|
||||
platformGetter = vi.spyOn(navigator, "platform", "get")
|
||||
})
|
||||
|
||||
test("returns '⌘' for Apple platforms", () => {
|
||||
|
||||
Reference in New Issue
Block a user