@@ -5,75 +5,75 @@ var h = require('hastscript')
55var s = require ( 'hastscript/svg' )
66var from = require ( '.' )
77
8- test ( 'fromSelector()' , function ( t ) {
8+ test ( 'fromSelector()' , function ( t ) {
99 t . equal ( typeof from , 'function' , 'should expose a function' )
1010
1111 t . throws (
12- function ( ) {
12+ function ( ) {
1313 from ( '@supports (transform-origin: 5% 5%) {}' )
1414 } ,
1515 / E r r o r : R u l e e x p e c t e d b u t " @ " f o u n d / ,
1616 'should throw w/ invalid selector'
1717 )
1818
1919 t . throws (
20- function ( ) {
20+ function ( ) {
2121 from ( 'a, b' )
2222 } ,
2323 / E r r o r : C a n n o t h a n d l e s e l e c t o r l i s t / ,
2424 'should throw w/ multiple selector'
2525 )
2626
2727 t . throws (
28- function ( ) {
28+ function ( ) {
2929 from ( 'a + b' )
3030 } ,
3131 / E r r o r : C a n n o t h a n d l e s i b l i n g c o m b i n a t o r ` \+ ` a t r o o t / ,
3232 'should throw w/ next-sibling combinator at root'
3333 )
3434
3535 t . throws (
36- function ( ) {
36+ function ( ) {
3737 from ( 'a ~ b' )
3838 } ,
3939 / E r r o r : C a n n o t h a n d l e s i b l i n g c o m b i n a t o r ` ~ ` a t r o o t / ,
4040 'should throw w/ subsequent-sibling combinator at root'
4141 )
4242
4343 t . throws (
44- function ( ) {
44+ function ( ) {
4545 from ( '[foo%=bar]' )
4646 } ,
4747 / E r r o r : E x p e c t e d " = " b u t " % " f o u n d ./ ,
4848 'should throw w/ attribute modifiers'
4949 )
5050
5151 t . throws (
52- function ( ) {
52+ function ( ) {
5353 from ( '[foo~=bar]' )
5454 } ,
5555 / E r r o r : C a n n o t h a n d l e a t t r i b u t e e q u a l i t y m o d i f i e r ` ~ = ` / ,
5656 'should throw w/ attribute modifiers'
5757 )
5858
5959 t . throws (
60- function ( ) {
60+ function ( ) {
6161 from ( ':active' )
6262 } ,
6363 / E r r o r : C a n n o t h a n d l e p s e u d o - s e l e c t o r ` a c t i v e ` / ,
6464 'should throw on pseudo classes'
6565 )
6666
6767 t . throws (
68- function ( ) {
68+ function ( ) {
6969 from ( ':nth-foo(2n+1)' )
7070 } ,
7171 / E r r o r : C a n n o t h a n d l e p s e u d o - s e l e c t o r ` n t h - f o o ` / ,
7272 'should throw on pseudo class “functions”'
7373 )
7474
7575 t . throws (
76- function ( ) {
76+ function ( ) {
7777 from ( '::before' )
7878 } ,
7979 / E r r o r : C a n n o t h a n d l e p s e u d o - e l e m e n t o r e m p t y p s e u d o - c l a s s / ,
0 commit comments