Skip to content

Commit 4fc6f48

Browse files
committed
adding actual values to the keyframes gets thrown
1 parent 7b6f630 commit 4fc6f48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ var tests = [
211211
},
212212
{
213213
should: 'localize keyframes',
214-
input: '@keyframes foo {}',
215-
expected: '@keyframes :local(foo) {}'
214+
input: '@keyframes foo { from { color: red; } to { color: blue; } }',
215+
expected: '@keyframes :local(foo) { from { color: red; } to { color: blue; } }'
216216
},
217217
{
218218
should: 'localize keyframes in global default mode',
@@ -222,8 +222,8 @@ var tests = [
222222
},
223223
{
224224
should: 'localize explicit keyframes',
225-
input: '@keyframes :local(foo) {} @-webkit-keyframes :global(bar) {}',
226-
expected: '@keyframes :local(foo) {} @-webkit-keyframes bar {}'
225+
input: '@keyframes :local(foo) { 0% { color: red; } 100% { color: blue; } } @-webkit-keyframes :global(bar) { from { color: red; } to { color: blue; } }',
226+
expected: '@keyframes :local(foo) { 0% { color: red; } 100% { color: blue; } } @-webkit-keyframes bar { from { color: red; } to { color: blue; } }'
227227
},
228228
{
229229
should: 'ignore :export statements',

0 commit comments

Comments
 (0)