Skip to content

Commit b023b9b

Browse files
committed
test(compiler-vapor): add scopeId test
1 parent 598b55f commit b023b9b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { compile } from '../src/compile'
2+
3+
describe('scopeId compiler support', () => {
4+
test('should only work in module mode', () => {
5+
expect(() => {
6+
compile(``, { scopeId: 'test' })
7+
}).toThrow(`"scopeId" option is only supported in module mode`)
8+
})
9+
})

0 commit comments

Comments
 (0)