File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,26 @@ describe('no interpolations', () => {
40
40
line : 1 ,
41
41
column : 38 ,
42
42
} ) ;
43
+ expect ( decl . rangeBy ( { } ) ) . toEqual ( {
44
+ start : {
45
+ column : 28 ,
46
+ line : 1 ,
47
+ } ,
48
+ end : {
49
+ column : 39 ,
50
+ line : 1 ,
51
+ } ,
52
+ } ) ;
53
+ expect ( decl . rangeBy ( { word : 'red' } ) ) . toEqual ( {
54
+ start : {
55
+ column : 35 ,
56
+ line : 1 ,
57
+ } ,
58
+ end : {
59
+ column : 38 ,
60
+ line : 1 ,
61
+ } ,
62
+ } ) ;
43
63
} ) ;
44
64
45
65
test ( 'two components' , ( ) => {
@@ -111,6 +131,26 @@ describe('no interpolations', () => {
111
131
line : 2 ,
112
132
column : 45 ,
113
133
} ) ;
134
+ expect ( secondComponent . rangeBy ( { } ) ) . toEqual ( {
135
+ start : {
136
+ column : 28 ,
137
+ line : 2 ,
138
+ } ,
139
+ end : {
140
+ column : 47 ,
141
+ line : 2 ,
142
+ } ,
143
+ } ) ;
144
+ expect ( secondComponent . rangeBy ( { word : 'blue' } ) ) . toEqual ( {
145
+ start : {
146
+ column : 42 ,
147
+ line : 2 ,
148
+ } ,
149
+ end : {
150
+ column : 46 ,
151
+ line : 2 ,
152
+ } ,
153
+ } ) ;
114
154
} ) ;
115
155
116
156
test ( 'empty component' , ( ) => {
You can’t perform that action at this time.
0 commit comments