@@ -6,7 +6,7 @@ describe('CSS Modules', () => {
66 const parse = createParser ( {
77 modules : [ 'css-position-1' ]
88 } ) ;
9-
9+
1010 expect ( parse ( ':static' ) ) . toEqual (
1111 ast . selector ( {
1212 rules : [
@@ -16,7 +16,7 @@ describe('CSS Modules', () => {
1616 ]
1717 } )
1818 ) ;
19-
19+
2020 expect ( parse ( ':relative' ) ) . toEqual (
2121 ast . selector ( {
2222 rules : [
@@ -26,7 +26,7 @@ describe('CSS Modules', () => {
2626 ]
2727 } )
2828 ) ;
29-
29+
3030 expect ( parse ( ':absolute' ) ) . toEqual (
3131 ast . selector ( {
3232 rules : [
@@ -36,7 +36,7 @@ describe('CSS Modules', () => {
3636 ]
3737 } )
3838 ) ;
39-
39+
4040 // Should reject fixed as it's not in position-1
4141 const strictParse = createParser ( {
4242 modules : [ 'css-position-1' ] ,
@@ -46,17 +46,17 @@ describe('CSS Modules', () => {
4646 }
4747 }
4848 } ) ;
49-
49+
5050 expect ( ( ) => strictParse ( ':fixed' ) ) . toThrow ( 'Unknown pseudo-class: "fixed".' ) ;
5151 } ) ;
5252 } ) ;
53-
53+
5454 describe ( 'css-position-2' , ( ) => {
5555 it ( 'should parse position-2 pseudo-classes when module is enabled' , ( ) => {
5656 const parse = createParser ( {
5757 modules : [ 'css-position-2' ]
5858 } ) ;
59-
59+
6060 // Position-2 adds fixed
6161 expect ( parse ( ':fixed' ) ) . toEqual (
6262 ast . selector ( {
@@ -67,7 +67,7 @@ describe('CSS Modules', () => {
6767 ]
6868 } )
6969 ) ;
70-
70+
7171 // Should reject sticky as it's not in position-2
7272 const strictParse = createParser ( {
7373 modules : [ 'css-position-2' ] ,
@@ -77,11 +77,11 @@ describe('CSS Modules', () => {
7777 }
7878 }
7979 } ) ;
80-
80+
8181 expect ( ( ) => strictParse ( ':sticky' ) ) . toThrow ( 'Unknown pseudo-class: "sticky".' ) ;
8282 } ) ;
8383 } ) ;
84-
84+
8585 describe ( 'css-position-3' , ( ) => {
8686 it ( 'should parse position pseudo-classes when module is enabled' , ( ) => {
8787 const parse = createParser ( {
0 commit comments