@@ -12,61 +12,61 @@ eachTest((name, css, json) => {
1212} )
1313
1414it ( 'fixes unclosed blocks in safe mode' , ( ) => {
15- expect ( parse ( '@media (screen) { a {\n' ) . toString ( ) ) . toEqual (
15+ expect ( parse ( '@media (screen) { a {\n' ) . toString ( ) ) . toBe (
1616 '@media (screen) { a {\n}}'
1717 )
18- expect ( parse ( 'a { color' ) . toString ( ) ) . toEqual ( 'a { color}' )
19- expect ( parse ( 'a { color: black' ) . first . first . prop ) . toEqual ( 'color' )
18+ expect ( parse ( 'a { color' ) . toString ( ) ) . toBe ( 'a { color}' )
19+ expect ( parse ( 'a { color: black' ) . first . first . prop ) . toBe ( 'color' )
2020} )
2121
2222it ( 'fixes unnecessary block close in safe mode' , ( ) => {
2323 let root = parse ( 'a {\n} }' )
24- expect ( root . first . toString ( ) ) . toEqual ( 'a {\n}' )
25- expect ( root . raws . after ) . toEqual ( ' }' )
24+ expect ( root . first . toString ( ) ) . toBe ( 'a {\n}' )
25+ expect ( root . raws . after ) . toBe ( ' }' )
2626} )
2727
2828it ( 'fixes unclosed comment in safe mode' , ( ) => {
2929 let root = parse ( 'a { /* b ' )
30- expect ( root . toString ( ) ) . toEqual ( 'a { /* b */}' )
31- expect ( root . first . first . text ) . toEqual ( 'b' )
30+ expect ( root . toString ( ) ) . toBe ( 'a { /* b */}' )
31+ expect ( root . first . first . text ) . toBe ( 'b' )
3232} )
3333
3434it ( 'fixes column and semicolumn case' , ( ) => {
35- expect ( parse ( 'a{:;}' ) . toString ( ) ) . toEqual ( 'a{}' )
35+ expect ( parse ( 'a{:;}' ) . toString ( ) ) . toBe ( 'a{}' )
3636} )
3737
3838it ( 'fixes unclosed quote in safe mode' , ( ) => {
39- expect ( parse ( 'a { content: "b' ) . first . first . value ) . toEqual ( '"b' )
39+ expect ( parse ( 'a { content: "b' ) . first . first . value ) . toBe ( '"b' )
4040} )
4141
4242it ( 'fixes unclosed bracket' , ( ) => {
43- expect ( parse ( ':not(one() { }' ) . toString ( ) ) . toEqual ( ':not(one() { }' )
43+ expect ( parse ( ':not(one() { }' ) . toString ( ) ) . toBe ( ':not(one() { }' )
4444} )
4545
4646it ( 'fixes property without value in safe mode' , ( ) => {
4747 let root = parse ( 'a { color: white; one }' )
4848 expect ( root . first . nodes ) . toHaveLength ( 1 )
4949 expect ( root . first . raws . semicolon ) . toBe ( true )
50- expect ( root . first . raws . after ) . toEqual ( ' one ' )
50+ expect ( root . first . raws . after ) . toBe ( ' one ' )
5151} )
5252
5353it ( 'fixes 2 properties in safe mode' , ( ) => {
5454 let root = parse ( 'a { color one: white; one }' )
5555 expect ( root . first . nodes ) . toHaveLength ( 1 )
56- expect ( root . first . first . prop ) . toEqual ( 'color' )
57- expect ( root . first . first . raws . between ) . toEqual ( ' one: ' )
56+ expect ( root . first . first . prop ) . toBe ( 'color' )
57+ expect ( root . first . first . raws . between ) . toBe ( ' one: ' )
5858} )
5959
6060it ( 'fixes nameless at-rule in safe mode' , ( ) => {
6161 let root = parse ( '@' )
62- expect ( root . first . type ) . toEqual ( 'atrule' )
63- expect ( root . first . name ) . toEqual ( '' )
62+ expect ( root . first . type ) . toBe ( 'atrule' )
63+ expect ( root . first . name ) . toBe ( '' )
6464} )
6565
6666it ( 'fixes property without semicolon in safe mode' , ( ) => {
6767 let root = parse ( 'a { one: 1 two: 2 }' )
6868 expect ( root . first . nodes ) . toHaveLength ( 2 )
69- expect ( root . toString ( ) ) . toEqual ( 'a { one: 1; two: 2 }' )
69+ expect ( root . toString ( ) ) . toBe ( 'a { one: 1; two: 2 }' )
7070} )
7171
7272it ( 'does not fall on missed semicolon in IE filter' , ( ) => {
@@ -77,10 +77,10 @@ it('does not fall on missed semicolon in IE filter', () => {
7777
7878it ( 'fixes double colon in safe mode' , ( ) => {
7979 let root = parse ( 'a { one:: 1 }' )
80- expect ( root . first . first . value ) . toEqual ( ': 1' )
80+ expect ( root . first . first . value ) . toBe ( ': 1' )
8181} )
8282
8383it ( 'fixes colon instead of semicolon' , ( ) => {
8484 let root = parse ( 'a { one: 1: } b { one: 1 : }' )
85- expect ( root . toString ( ) ) . toEqual ( 'a { one: 1: } b { one: 1 : }' )
85+ expect ( root . toString ( ) ) . toBe ( 'a { one: 1: } b { one: 1 : }' )
8686} )
0 commit comments