Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit cb49f93

Browse files
committed
test: update cases
1 parent 3904097 commit cb49f93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/compiler/__test__/analyze.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const baseConfig: AnalyzeOptions = {
77

88
describe('analyzeCode - exclude', () => {
99
test('not acceptable lang', () => {
10-
expect(analyzeCode('', 'test.txt', baseConfig)).toBeNull()
10+
expect(analyzeCode('', 'test.txt', baseConfig)).toBe('')
1111
})
1212
test('excluded path', () => {
13-
expect(analyzeCode('', 'node_modules/test.js', baseConfig)).toBeNull()
13+
expect(analyzeCode('', 'node_modules/test.js', baseConfig)).toBe('')
1414
})
1515
test('not enabled', () => {
16-
expect(analyzeCode('', 'test.js', { rerenderTrace: false })).toBeNull()
16+
expect(analyzeCode('', 'test.js', { rerenderTrace: false })).toBe('')
1717
})
1818
test('should execute', () => {
1919
expect(analyzeCode(`

0 commit comments

Comments
 (0)