GHHG10/CodeServer / opencode /packages /app /src /pages /error-description.test.ts
GHHG10's picture
download
raw
681 Bytes
import { describe, expect, test } from "bun:test"
import { errorDescriptionKey } from "./error-description"
describe("error description", () => {
test("describes local server startup errors", () => {
expect(errorDescriptionKey(Object.assign(new Error("migration failed"), { localServerStartup: true }))).toBe(
"error.page.description.localServerStartup",
)
})
test("uses the generic description for other errors", () => {
expect(errorDescriptionKey(new Error("unknown"))).toBe("error.page.description")
expect(errorDescriptionKey(Object.assign(new Error("unknown"), { localServerStartup: false }))).toBe(
"error.page.description",
)
})
})

Xet Storage Details

Size:
681 Bytes
·
Xet hash:
9ff9b3124243ab540316b166e5cd0e7823d918405aaf001ee0eb45087b90e140

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.