Skip to content

Commit d3a0fbf

Browse files
reklawnoslencioni
authored andcommitted
Fix broken tests
1 parent a2b2858 commit d3a0fbf

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/generate_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@ ${formatStyles(actual)}
274274
padding: 30,
275275
}
276276
}
277-
], `
278-
@media (min-width: 200px){
277+
], [
278+
`@media (min-width: 200px){
279279
.foo{
280280
padding:20px !important;
281281
}
282-
}
283-
@media (min-width: 400px){
282+
}`,
283+
`@media (min-width: 400px){
284284
.foo{
285285
padding:30px !important;
286286
}
287-
}`, defaultSelectorHandlers);
287+
}`], defaultSelectorHandlers);
288288
});
289289

290290
it('supports custom string handlers', () => {

tests/inject_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ describe('String handlers', () => {
464464
flushToStyleTag();
465465

466466
assertStylesInclude('@keyframes keyframe_d35t13');
467-
assertStylesInclude('0%{opacity:0;-webkit-transform:scale(0.75) translate3d(1px, 2px, 0);-ms-transform:scale(0.75) translate3d(1px, 2px, 0);transform:scale(0.75) translate3d(1px, 2px, 0);}');
468-
assertStylesInclude('100%{opacity:1;-webkit-transform:scale(1) translate3d(1px, 2px, 0);-ms-transform:scale(1) translate3d(1px, 2px, 0);transform:scale(1) translate3d(1px, 2px, 0);}');
469-
assertStylesInclude('animation-name:keyframe_d35t13');
467+
assertStylesInclude('0% {opacity: 0; -webkit-transform: scale(0.75) translate3d(1px,2px,0); -ms-transform: scale(0.75) translate3d(1px,2px,0); transform: scale(0.75) translate3d(1px,2px,0);}');
468+
assertStylesInclude('100% {opacity: 1; -webkit-transform: scale(1) translate3d(1px,2px,0); -ms-transform: scale(1) translate3d(1px,2px,0); transform: scale(1) translate3d(1px,2px,0);}');
469+
assertStylesInclude('animation-name: keyframe_d35t13');
470470
});
471471

472472
it('doesn\'t add the same keyframes twice', () => {

0 commit comments

Comments
 (0)