@@ -19,7 +19,7 @@ test('stringifyPosition', function (t) {
19
19
t . equal (
20
20
stringify ( { type : 'text' , position : 3 } ) ,
21
21
'1:1-1:1' ,
22
- 'should return range for `node` with invalid `position` #1'
22
+ 'should return a range for `node` with invalid `position` #1'
23
23
) ;
24
24
25
25
t . equal (
@@ -28,7 +28,7 @@ test('stringifyPosition', function (t) {
28
28
position : { start : { } , end : { } }
29
29
} ) ,
30
30
'1:1-1:1' ,
31
- 'should return range for `node` with invalid `position` #2'
31
+ 'should return a range for `node` with invalid `position` #2'
32
32
) ;
33
33
34
34
t . equal (
@@ -40,7 +40,7 @@ test('stringifyPosition', function (t) {
40
40
}
41
41
} ) ,
42
42
'1:1-1:1' ,
43
- 'should return range for `node` with invalid `position` #3'
43
+ 'should return a range for `node` with invalid `position` #3'
44
44
) ;
45
45
46
46
t . equal (
@@ -52,25 +52,25 @@ test('stringifyPosition', function (t) {
52
52
}
53
53
} ) ,
54
54
'2:5-2:6' ,
55
- 'should return range for `node` with valid `position`'
55
+ 'should return a range for `node` with valid `position`'
56
56
) ;
57
57
58
58
t . equal (
59
59
stringify ( { start : null , end : null } ) ,
60
60
'1:1-1:1' ,
61
- 'should return a range for a `location ` without `position `s'
61
+ 'should return a range for a `position ` without `point `s'
62
62
) ;
63
63
64
64
t . equal (
65
65
stringify ( { start : 3 , end : 6 } ) ,
66
66
'1:1-1:1' ,
67
- 'should return range for `location ` with invalid `position `s #1'
67
+ 'should return a range for `position ` with invalid `point `s #1'
68
68
) ;
69
69
70
70
t . equal (
71
71
stringify ( { start : { } , end : { } } ) ,
72
72
'1:1-1:1' ,
73
- 'should return range for `location ` with invalid `position `s #1'
73
+ 'should return range for `position ` with invalid `point `s #1'
74
74
) ;
75
75
76
76
t . equal (
@@ -79,7 +79,7 @@ test('stringifyPosition', function (t) {
79
79
end : { line : null , column : null }
80
80
} ) ,
81
81
'1:1-1:1' ,
82
- 'should return range for `location ` with invalid `position `s #3'
82
+ 'should return range for `position ` with invalid `point `s #3'
83
83
) ;
84
84
85
85
t . equal (
@@ -88,37 +88,37 @@ test('stringifyPosition', function (t) {
88
88
end : { line : 2 , column : 6 }
89
89
} ) ,
90
90
'2:5-2:6' ,
91
- 'should return range for `location ` with valid `position `s'
91
+ 'should return range for `position ` with valid `point `s'
92
92
) ;
93
93
94
94
t . equal (
95
95
stringify ( { line : null , column : null } ) ,
96
96
'1:1' ,
97
- 'should return a point for a `position ` without indices'
97
+ 'should return a point for a `point ` without indices'
98
98
) ;
99
99
100
100
t . equal (
101
101
stringify ( { line : 'foo' , column : 'bar' } ) ,
102
102
'1:1' ,
103
- 'should return a point for a `position ` with invalid indices #1'
103
+ 'should return a point for a `point ` with invalid indices #1'
104
104
) ;
105
105
106
106
t . equal (
107
107
stringify ( { line : 4 } ) ,
108
108
'4:1' ,
109
- 'should return a point for a partially valid `position ` #1'
109
+ 'should return a point for a partially valid `point ` #1'
110
110
) ;
111
111
112
112
t . equal (
113
113
stringify ( { column : 12 } ) ,
114
114
'1:12' ,
115
- 'should return a point for a partially valid `position ` #1'
115
+ 'should return a point for a partially valid `point ` #1'
116
116
) ;
117
117
118
118
t . equal (
119
119
stringify ( { line : 5 , column : 2 } ) ,
120
120
'5:2' ,
121
- 'should return a point for a valid `position `'
121
+ 'should return a point for a valid `point `'
122
122
) ;
123
123
124
124
t . end ( ) ;
0 commit comments