Skip to content

Commit 8e732bb

Browse files
committed
✅ test: fix unit test failed
1 parent c04964c commit 8e732bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/index.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function assert (t, content) {
2121
loader._callback.content, `module.exports = function (Component) {
2222
Component.options.__i18n = Component.options.__i18n || []
2323
Component.options.__i18n.push('{\"en\":{\"hello\":\"hello world!\"}}')
24+
delete Component.options._Ctor
2425
}\n`
2526
)
2627
}
@@ -31,6 +32,7 @@ function assertSpecial (t, content) {
3132
loader._callback.content, `module.exports = function (Component) {
3233
Component.options.__i18n = Component.options.__i18n || []
3334
Component.options.__i18n.push('{\"en\":{\"hello\":\"hello\\\\ngreat\\\\t\\\\\"world\\\\\"\"}}')
35+
delete Component.options._Ctor
3436
}\n`
3537
)
3638
}

0 commit comments

Comments
 (0)