Quellcode durchsuchen

remove no longer necessary specs

Evan You vor 9 Jahren
Ursprung
Commit
39bcd60a33

+ 0 - 20
test/unit/modules/compiler/codegen.spec.js

@@ -146,26 +146,6 @@ describe('codegen', () => {
     )
   })
 
-  it('generate transition', () => {
-    // without key, should auto-set unique key
-    assertCodegen(
-      '<p transition="expand">hello world</p>',
-      `with(this){return _h('p',{transition:"expand",key:"__t18__"},["hello world"])}`
-    )
-    // with key
-    assertCodegen(
-      '<p transition="expand" key="1">hello world</p>',
-      `with(this){return _h('p',{key:"1",transition:"expand"},["hello world"])}`
-    )
-  })
-
-  it('generate dynamic transition with transition on appear', () => {
-    assertCodegen(
-      `<p :transition="{name:'expand',appear:true}" :key="test">hello world</p>`,
-      `with(this){return _h('p',{key:test,transition:{name:'expand',appear:true}},["hello world"])}`
-    )
-  })
-
   it('generate v-show directive', () => {
     assertCodegen(
       '<p v-show="shown">hello world</p>',

+ 0 - 10
test/unit/modules/compiler/parser.spec.js

@@ -211,16 +211,6 @@ describe('parser', () => {
     expect(ast.styleBinding).toBe('error')
   })
 
-  it('transition', () => {
-    const ast = parse('<p v-if="show" transition="expand">hello world</p>', baseOptions)
-    expect(ast.transition).toBe('"expand"')
-  })
-
-  it('transition with empty', () => {
-    const ast = parse('<p v-if="show" transition="">hello world</p>', baseOptions)
-    expect(ast.transition).toBe(true)
-  })
-
   it('attribute with v-bind', () => {
     const ast = parse('<input type="text" name="field1" :value="msg">', baseOptions)
     expect(ast.attrsList[0].name).toBe('type')