Skip to content

Commit 555e1ff

Browse files
committed
🧪 添加失败的测试
1 parent 09b3176 commit 555e1ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/__tests__/unit/deco.test.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ export class TestClass {
3636
}
3737
}
3838

39+
// namespace TestNameSpace {
40+
// function add(a: number, b: number): number {
41+
// return a + b;
42+
// }
43+
// }
44+
// 在 TypeScript 中,装饰器(decorators)不能直接应用于命名空间(namespace)中的函数。
45+
// 装饰器通常用于类的方法、类本身、属性或参数上。
46+
3947
describe("deco.test.tsx", () => {
4048
// it("should pass", () => {
4149
// const testClass = new TestClass();

0 commit comments

Comments
 (0)