mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Fix annotated var test
This commit is contained in:
3
test/fixtures/typescript/src/App.test.ts
vendored
3
test/fixtures/typescript/src/App.test.ts
vendored
@@ -8,7 +8,8 @@ it('reads a typescript file with no syntax error', () => {
|
||||
});
|
||||
|
||||
it('supports decorators', () => {
|
||||
expect((App as any).annotated).toBe(true);
|
||||
|
||||
const app = new App();
|
||||
expect((app as any).annotated).toBe(true);
|
||||
expect(app.decorated).toBe(42);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user