|
|
@@ -45,11 +45,11 @@ describe('Global API', function () {
|
|
|
|
|
|
it('extend warn invalid names', function () {
|
|
|
Vue.extend({ name: '123' })
|
|
|
- expect(hasWarned('Invalid component name: 123')).toBe(true)
|
|
|
+ expect(hasWarned('Invalid component name: "123"')).toBe(true)
|
|
|
Vue.extend({ name: '_fesf' })
|
|
|
- expect(hasWarned('Invalid component name: _fesf')).toBe(true)
|
|
|
+ expect(hasWarned('Invalid component name: "_fesf"')).toBe(true)
|
|
|
Vue.extend({ name: 'Some App' })
|
|
|
- expect(hasWarned('Invalid component name: Some App')).toBe(true)
|
|
|
+ expect(hasWarned('Invalid component name: "Some App"')).toBe(true)
|
|
|
})
|
|
|
|
|
|
it('use', function () {
|