Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16e3dae

Browse files
committed
fix eslint and coverage
1 parentae4db82 commit16e3dae

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎src/core/instance/render.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import config from '../config'
44
importVNode,{emptyVNode,cloneVNode,cloneVNodes}from'../vdom/vnode'
55
import{normalizeChildren}from'../vdom/helpers/index'
66
import{
7-
warn,formatComponentName,bind,isObject,toObject,isServerRendering,
7+
warn,formatComponentName,bind,isObject,toObject,
88
nextTick,resolveAsset,_toString,toNumber,looseEqual,looseIndexOf
99
}from'../util/index'
1010

‎test/unit/features/transition/transition.spec.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,5 +849,12 @@ if (!isIE9) {
849849
expect(vm.$el.children[0].className).toBe('test')
850850
}).then(done)
851851
})
852+
853+
it('warn when used on multiple elements',()=>{
854+
newVue({
855+
template:`<transition><p>1</p><p>2</p></transition>`
856+
}).$mount()
857+
expect(`<transition> can only be used on a single element`).toHaveBeenWarned()
858+
})
852859
})
853860
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp