Skip to content

Commit 11c72de

Browse files
committed
test(unit-plugin-tester): fix flawed test
1 parent d969aa6 commit 11c72de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit-plugin-tester.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ const isBabelFileResult = function (obj: unknown) {
7272
typeof obj !== 'object' ||
7373
!('ast' in obj) ||
7474
!('code' in obj) ||
75-
!('ignored' in obj) ||
7675
!('map' in obj) ||
7776
!('metadata' in obj);
7877

79-
return isNotBabelFileResult;
78+
return !isNotBabelFileResult;
8079
};
8180

8281
const dummyTestObject = { [$type]: 'test-object' } as const;

0 commit comments

Comments
 (0)