diff --git a/test/unit/features/component/component-keep-alive.spec.js b/test/unit/features/component/component-keep-alive.spec.js
index 6944d3551ea..4d0f129b49a 100644
--- a/test/unit/features/component/component-keep-alive.spec.js
+++ b/test/unit/features/component/component-keep-alive.spec.js
@@ -380,7 +380,7 @@ describe('Component keep-alive', () => {
})
// #4237
- it('should update latest props/listners for a re-activated component', done => {
+ it('should update latest props/listeners for a re-activated component', done => {
const one = {
props: ['prop'],
template: `
`
diff --git a/test/unit/features/component/component-slot.spec.js b/test/unit/features/component/component-slot.spec.js
index 7ca7fbd4f98..2d3b310dbf0 100644
--- a/test/unit/features/component/component-slot.spec.js
+++ b/test/unit/features/component/component-slot.spec.js
@@ -80,7 +80,7 @@ describe('Component slot', () => {
expect(child.$el.children[1].textContent).toBe('slot b')
})
- it('fallback content with mixed named/unamed slots', () => {
+ it('fallback content with mixed named/unnamed slots', () => {
mount({
childTemplate: `
diff --git a/test/unit/features/directives/bind.spec.js b/test/unit/features/directives/bind.spec.js
index b35a05d65c4..978e3d81c5e 100644
--- a/test/unit/features/directives/bind.spec.js
+++ b/test/unit/features/directives/bind.spec.js
@@ -67,7 +67,7 @@ describe('Directive v-bind', () => {
}).then(done)
})
- it('enumrated attr', done => {
+ it('enumerated attr', done => {
const vm = new Vue({
template: '
hello
',
data: { foo: true }
diff --git a/test/unit/features/global-api/extend.spec.js b/test/unit/features/global-api/extend.spec.js
index 62d21bc6ce1..4a4a73505b9 100644
--- a/test/unit/features/global-api/extend.spec.js
+++ b/test/unit/features/global-api/extend.spec.js
@@ -124,7 +124,7 @@ describe('Global API: extend', () => {
})
// #4767
- it('extended options should use different identitfy from parent', () => {
+ it('extended options should use different identify from parent', () => {
const A = Vue.extend({ computed: {}})
const B = A.extend()
B.options.computed.b = () => 'foo'
diff --git a/test/unit/features/options/el.spec.js b/test/unit/features/options/el.spec.js
index c4538d3d85e..75beda1c2a1 100644
--- a/test/unit/features/options/el.spec.js
+++ b/test/unit/features/options/el.spec.js
@@ -12,7 +12,7 @@ describe('Options el', () => {
expect(vm.$el.textContent).toBe(vm.message)
})
- it('should be replaced when use togther with `template` option', () => {
+ it('should be replaced when use together with `template` option', () => {
const el = document.createElement('div')
el.innerHTML = '
{{message}}'
const vm = new Vue({
@@ -24,7 +24,7 @@ describe('Options el', () => {
expect(vm.$el.textContent).toBe(vm.message)
})
- it('should be replaced when use togther with `render` option', () => {
+ it('should be replaced when use together with `render` option', () => {
const el = document.createElement('div')
el.innerHTML = '
{{message}}'
const vm = new Vue({
diff --git a/test/unit/features/options/lifecycle.spec.js b/test/unit/features/options/lifecycle.spec.js
index 0bb7698c809..2b649aa98e4 100644
--- a/test/unit/features/options/lifecycle.spec.js
+++ b/test/unit/features/options/lifecycle.spec.js
@@ -1,6 +1,6 @@
import Vue from 'vue'
-describe('Options lifecyce hooks', () => {
+describe('Options lifecycle hooks', () => {
let spy
beforeEach(() => {
spy = jasmine.createSpy('hook')
diff --git a/test/unit/features/options/props.spec.js b/test/unit/features/options/props.spec.js
index 81180ee5e80..505d81336eb 100644
--- a/test/unit/features/options/props.spec.js
+++ b/test/unit/features/options/props.spec.js
@@ -438,7 +438,7 @@ describe('Options props', () => {
})
// #4090
- it('should not trigger wathcer on default value', done => {
+ it('should not trigger watcher on default value', done => {
const spy = jasmine.createSpy()
const vm = new Vue({
template: `
`,
diff --git a/test/unit/features/transition/transition-mode.spec.js b/test/unit/features/transition/transition-mode.spec.js
index abb5d8d2c5d..f6c5c09a497 100644
--- a/test/unit/features/transition/transition-mode.spec.js
+++ b/test/unit/features/transition/transition-mode.spec.js
@@ -378,7 +378,7 @@ if (!isIE9) {
}).then(done)
})
- it('warn invaid mode', () => {
+ it('warn invalid mode', () => {
new Vue({
template: '
123
'
}).$mount()
diff --git a/test/unit/modules/compiler/codegen.spec.js b/test/unit/modules/compiler/codegen.spec.js
index 6cb564eb782..290185c71fb 100644
--- a/test/unit/modules/compiler/codegen.spec.js
+++ b/test/unit/modules/compiler/codegen.spec.js
@@ -102,7 +102,7 @@ describe('codegen', () => {
)
})
- it('generate mutli v-else-if with v-else directive', () => {
+ it('generate multi v-else-if with v-else directive', () => {
assertCodegen(
'
',
`with(this){return _c('div',[(show)?_c('p',[_v("hello")]):(hide)?_c('p',[_v("world")]):(3)?_c('p',[_v("elseif")]):_c('p',[_v("bye")])])}`
@@ -287,7 +287,7 @@ describe('codegen', () => {
)
})
- it('generate events with multiple modifers', () => {
+ it('generate events with multiple modifiers', () => {
assertCodegen(
'
',
`with(this){return _c('input',{on:{"input":function($event){$event.stopPropagation();$event.preventDefault();if($event.target !== $event.currentTarget)return null;onInput($event)}}})}`
@@ -324,8 +324,8 @@ describe('codegen', () => {
it('generate events with inline statement', () => {
assertCodegen(
- '
',
- `with(this){return _c('input',{on:{"input":function($event){curent++}}})}`
+ '
',
+ `with(this){return _c('input',{on:{"input":function($event){current++}}})}`
)
})
@@ -372,7 +372,7 @@ describe('codegen', () => {
it('generate unhandled events', () => {
assertCodegen(
- '
',
+ '
',
`with(this){return _c('input',{on:{"input":function(){}}})}`,
ast => {
ast.events.input = undefined
@@ -382,8 +382,8 @@ describe('codegen', () => {
it('generate multiple event handlers', () => {
assertCodegen(
- '
',
- `with(this){return _c('input',{on:{"input":[function($event){curent++},function($event){$event.stopPropagation();onInput($event)}]}})}`
+ '
',
+ `with(this){return _c('input',{on:{"input":[function($event){current++},function($event){$event.stopPropagation();onInput($event)}]}})}`
)
})
@@ -418,7 +418,7 @@ describe('codegen', () => {
'
hello world
',
`with(this){return _c('my-component',{inlineTemplate:{render:function(){with(this){return _m(0)}},staticRenderFns:[function(){with(this){return _c('p',[_c('span',[_v("hello world")])])}}]}})}`
)
- // "have inline-template attrs, but not having extactly one child element
+ // "have inline-template attrs, but not having exactly one child element
assertCodegen(
'
',
`with(this){return _c('my-component',{inlineTemplate:{render:function(){with(this){return _c('hr')}},staticRenderFns:[]}})}`
diff --git a/test/unit/modules/compiler/optimizer.spec.js b/test/unit/modules/compiler/optimizer.spec.js
index d7ed5542123..f14fd2e7490 100644
--- a/test/unit/modules/compiler/optimizer.spec.js
+++ b/test/unit/modules/compiler/optimizer.spec.js
@@ -45,7 +45,7 @@ describe('optimizer', () => {
// ul
expect(ast.static).toBe(false) // ul
// li
- expect(ast.children[0].static).toBe(false) // firts
+ expect(ast.children[0].static).toBe(false) // first
expect(ast.children[1].static).toBe(true) // second
expect(ast.children[2].static).toBe(false) // third
// text node inside li
diff --git a/test/unit/modules/compiler/parser.spec.js b/test/unit/modules/compiler/parser.spec.js
index f37887edaff..0e43200096b 100644
--- a/test/unit/modules/compiler/parser.spec.js
+++ b/test/unit/modules/compiler/parser.spec.js
@@ -325,7 +325,7 @@ describe('parser', () => {
expect(ast.children[0].slotName).toBeUndefined()
})
- it('slot tag namped syntax', () => {
+ it('slot tag named syntax', () => {
const ast = parse('
hello world
', baseOptions)
expect(ast.children[0].tag).toBe('slot')
expect(ast.children[0].slotName).toBe('"one"')
diff --git a/test/unit/modules/sfc/sfc-parser.spec.js b/test/unit/modules/sfc/sfc-parser.spec.js
index dbe7e8a5333..4cf6bad574a 100644
--- a/test/unit/modules/sfc/sfc-parser.spec.js
+++ b/test/unit/modules/sfc/sfc-parser.spec.js
@@ -164,7 +164,7 @@ describe('Single File Component parser', () => {
- Shoud not be shown
+ Should not be shown
`)
diff --git a/test/unit/modules/vdom/patch/edge-cases.spec.js b/test/unit/modules/vdom/patch/edge-cases.spec.js
index a608f34a559..1434ee46c6c 100644
--- a/test/unit/modules/vdom/patch/edge-cases.spec.js
+++ b/test/unit/modules/vdom/patch/edge-cases.spec.js
@@ -116,7 +116,7 @@ describe('vdom patch: edge cases', () => {
})
// #4530
- it('should not reset value when patching bewteen dyanmic/static bindings', done => {
+ it('should not reset value when patching between dynamic/static bindings', done => {
const vm = new Vue({
data: { ok: true },
template: `
diff --git a/test/weex/compiler/style.spec.js b/test/weex/compiler/style.spec.js
index cebf3341a34..efde3c35aad 100644
--- a/test/weex/compiler/style.spec.js
+++ b/test/weex/compiler/style.spec.js
@@ -29,7 +29,7 @@ describe('compile style', () => {
expect(errors).toEqual([])
})
- it('should compile hyphanted style name & value', () => {
+ it('should compile hyphenated style name & value', () => {
const { render, staticRenderFns, errors } = compile(`
`)
expect(render).not.toBeUndefined()
expect(staticRenderFns).not.toBeUndefined()
diff --git a/test/weex/runtime/framework.spec.js b/test/weex/runtime/framework.spec.js
index 4c335771068..dd74c29f1cf 100644
--- a/test/weex/runtime/framework.spec.js
+++ b/test/weex/runtime/framework.spec.js
@@ -199,7 +199,7 @@ describe('framework APIs', () => {
expect(root).toMatch(/not found/)
})
- it('reveiveTasks: fireEvent', (done) => {
+ it('receiveTasks: fireEvent', (done) => {
const instance = new Instance(runtime)
framework.createInstance(instance.id, `
new Vue({
@@ -254,7 +254,7 @@ describe('framework APIs', () => {
})
})
- it('reveiveTasks: callback', (done) => {
+ it('receiveTasks: callback', (done) => {
framework.registerModules({
foo: ['a', 'b', 'c']
})