Skip to content

Commit 27b2503

Browse files
committed
chore: added unit test
1 parent 6c475c3 commit 27b2503

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compiler-core/__tests__/utils.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ describe('isMemberExpression', () => {
122122
expect(fn(`123[a]`)).toBe(true)
123123
expect(fn(`foo() as string`)).toBe(false)
124124
expect(fn(`a + b as string`)).toBe(false)
125+
// #9865
126+
expect(fn('""')).toBe(false)
127+
expect(fn('undefined')).toBe(false)
128+
expect(fn('null')).toBe(false)
125129
})
126130
})
127131

0 commit comments

Comments
 (0)