|
|
@@ -215,6 +215,15 @@ describe('create-element', () => {
|
|
|
expect('Avoid using non-primitive value as key').not.toHaveBeenWarned()
|
|
|
})
|
|
|
|
|
|
+ it('doesn\'t warn symbol key', () => {
|
|
|
+ new Vue({
|
|
|
+ render (h) {
|
|
|
+ return h('div', { key: Symbol('symbol') })
|
|
|
+ }
|
|
|
+ }).$mount()
|
|
|
+ expect('Avoid using non-primitive value as key').not.toHaveBeenWarned()
|
|
|
+ })
|
|
|
+
|
|
|
it('nested child elements should be updated correctly', done => {
|
|
|
const vm = new Vue({
|
|
|
data: { n: 1 },
|