We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7546753 commit 91313aeCopy full SHA for 91313ae
test/unit/enum.spec.ts
@@ -139,14 +139,18 @@ describe("const enum", () => {
139
});
140
141
142
-test("enum toString", () => {
143
- const code = `
+test("toString", () => {
+ util.testFunction`
144
enum TestEnum {
145
A,
146
B,
147
C,
148
}
149
- let test = TestEnum.A;
150
- return test.toString();`;
151
- expect(util.transpileAndExecute(code)).toBe(0);
+
+ function foo(value: TestEnum) {
+ return value.toString();
152
+ }
153
154
+ return foo(TestEnum.A);
155
+ `.expectToMatchJsResult();
156
0 commit comments