Skip to content

Commit 8743d1d

Browse files
committed
[+] Fixed keyframes test
1 parent 5b5f514 commit 8743d1d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/test/component-features.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('component features', () => {
5454
components: { StyledComp },
5555
template: `
5656
<styled-comp>
57-
<template scope='{ p }'>{{ p }}</template>
57+
<template slot-scope='{ p }'>{{ p }}</template>
5858
</styled-comp>`
5959
}).$mount()
6060
expect(vm.$el.innerHTML).toEqual('ActualContent')
@@ -70,7 +70,7 @@ describe('component features', () => {
7070
components: { StyledComp },
7171
template: `
7272
<styled-comp>
73-
<template slot='content' scope='{ p }'>{{ p }}</template>
73+
<template slot='content' slot-scope='{ p }'>{{ p }}</template>
7474
</styled-comp>`
7575
}).$mount()
7676
expect(vm.$el.innerHTML).toEqual('ActualContent')

src/test/keyframes.test.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('css features', () => {
1111
})
1212

1313
it('should add vendor prefixes in the right order', () => {
14-
const Comp = keyframes`
14+
const rotate = keyframes`
1515
from {
1616
transform: rotate(0deg);
1717
}
@@ -21,9 +21,14 @@ describe('css features', () => {
2121
}
2222
`
2323

24+
const Comp = styled.div`
25+
animation: ${rotate} 2s linear infinite;
26+
`
27+
2428
const vm = new Vue(Comp).$mount()
29+
2530
expectCSSMatches(
26-
'@keyframes iVXCSc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }'
31+
'@keyframes iVXCSc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .a {-webkit-animation:iVXCSc 2s linear infinite;animation:iVXCSc 2s linear infinite;}'
2732
)
2833
})
2934
})

0 commit comments

Comments
 (0)