Skip to content

Commit 3b95e71

Browse files
committed
update tests to reflect cleanChannelString
1 parent 63463bd commit 3b95e71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

__tests__/utils/channels.tests.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { cleanChannelString } from "../../utils/channels";
2-
import { test, expect, describe, it } from "@jest/globals";
2+
import { expect, describe, it } from "@jest/globals";
33

44
//cleanChannelString
55

@@ -13,7 +13,7 @@ describe("cleanChannelString", () => {
1313
});
1414

1515
it('should replace "compsci " with "cs"', () => {
16-
expect(cleanChannelString("compsci")).toEqual("cs");
16+
expect(cleanChannelString("compsci ")).toEqual("cs");
1717
});
1818

1919
it("should replace spaces and parentheses with hyphens", () => {
@@ -28,6 +28,7 @@ describe("cleanChannelString", () => {
2828
});
2929

3030
it("should handle a mix of all transformations", () => {
31-
expect(cleanChannelString("Compsci 123!")).toEqual("cs-123");
31+
expect(cleanChannelString("Compsci a%$ 123!")).toEqual("csa-123");
3232
});
3333
});
34+

0 commit comments

Comments
 (0)