refactor: adding further fixtures #319
Annotations
5 errors
Run tests with coverage
Process completed with exit code 1.
|
Run tests with coverage:
packages/css-if-polyfill/test/integrated.test.js#L42
AssertionError: expected '.responsive{padding: if( media(width …' to be '.responsive{padding: 15px;}@supports …' // Object.is equality
Expected: ".responsive{padding: 15px;}@supports (display: grid){.responsive{padding: 25px;}}@media (width >= 768px){.responsive{padding: 30px;}}@media (width >= 1200px){.responsive{padding: 40px;}}"
Received: ".responsive{padding: if( media(width >= 1200px): 40px;media(width >= 768px): 30px;supports(display: grid): 25px;style(--large-padding): 35px;else: 15px );}"
❯ test/integrated.test.js:42:45
|
Run tests with coverage:
packages/css-if-polyfill/test/integrated.test.js#L42
AssertionError: expected '.test{color: if(not media(print): blu…' to be '.test{color: black;}@media (not (prin…' // Object.is equality
Expected: ".test{color: black;}@media (not (print)){.test{color: blue;}}.test{display: grid;}@supports (not display: grid){.test{display: block;}}"
Received: ".test{color: if(not media(print): blue;else: black);}.test{display: if(not supports(display: grid): block;else: grid);}"
❯ test/integrated.test.js:42:45
|
Run tests with coverage:
packages/css-if-polyfill/test/integrated.test.js#L42
AssertionError: expected '.test{--foo: if(style(--foo: bar): ba…' to be '.test{--foo: default;}' // Object.is equality
Expected: ".test{--foo: default;}"
Received: ".test{--foo: if(style(--foo: bar): baz;else: default);}"
❯ test/integrated.test.js:42:45
|
Run tests with coverage:
packages/css-if-polyfill/test/integrated.test.js#L42
AssertionError: expected '.test{color: if(media(print): red);}.…' to be '.test{background: transparent;}' // Object.is equality
Expected: ".test{background: transparent;}"
Received: ".test{color: if(media(print): red);}.test{background: if(supports(display: none): transparent);}"
❯ test/integrated.test.js:42:45
|
Loading