Skip to content

Commit 39bcd60

Browse files
committed
remove no longer necessary specs
1 parent 5c96daa commit 39bcd60

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

test/unit/modules/compiler/codegen.spec.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -146,26 +146,6 @@ describe('codegen', () => {
146146
)
147147
})
148148

149-
it('generate transition', () => {
150-
// without key, should auto-set unique key
151-
assertCodegen(
152-
'<p transition="expand">hello world</p>',
153-
`with(this){return _h('p',{transition:"expand",key:"__t18__"},["hello world"])}`
154-
)
155-
// with key
156-
assertCodegen(
157-
'<p transition="expand" key="1">hello world</p>',
158-
`with(this){return _h('p',{key:"1",transition:"expand"},["hello world"])}`
159-
)
160-
})
161-
162-
it('generate dynamic transition with transition on appear', () => {
163-
assertCodegen(
164-
`<p :transition="{name:'expand',appear:true}" :key="test">hello world</p>`,
165-
`with(this){return _h('p',{key:test,transition:{name:'expand',appear:true}},["hello world"])}`
166-
)
167-
})
168-
169149
it('generate v-show directive', () => {
170150
assertCodegen(
171151
'<p v-show="shown">hello world</p>',

test/unit/modules/compiler/parser.spec.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,6 @@ describe('parser', () => {
211211
expect(ast.styleBinding).toBe('error')
212212
})
213213

214-
it('transition', () => {
215-
const ast = parse('<p v-if="show" transition="expand">hello world</p>', baseOptions)
216-
expect(ast.transition).toBe('"expand"')
217-
})
218-
219-
it('transition with empty', () => {
220-
const ast = parse('<p v-if="show" transition="">hello world</p>', baseOptions)
221-
expect(ast.transition).toBe(true)
222-
})
223-
224214
it('attribute with v-bind', () => {
225215
const ast = parse('<input type="text" name="field1" :value="msg">', baseOptions)
226216
expect(ast.attrsList[0].name).toBe('type')

0 commit comments

Comments
 (0)