mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site/scripts): guard check-compiler main block from test imports (#23825)
This commit is contained in:
@@ -35,7 +35,7 @@ describe("shortenMessage", () => {
|
||||
expect(shortenMessage("Single sentence.")).toBe("Single sentence");
|
||||
});
|
||||
|
||||
it("returns (unknown) for empty input", () => {
|
||||
it("preserves empty string and (unknown) sentinel", () => {
|
||||
expect(shortenMessage("")).toBe("");
|
||||
expect(shortenMessage("(unknown)")).toBe("(unknown)");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user