@@ -50,15 +50,15 @@ describe('Relative time filter', () => {
50
50
expect ( relativeTime ) . toEqual ( `didn't happen yet` ) ;
51
51
} ) ;
52
52
53
- it ( " should return 'just now' string if given time is the same as current time" , ( ) => {
53
+ it ( ' should return \ 'just now\ ' string if given time is the same as current time' , ( ) => {
54
54
// when
55
55
let relativeTime = relativeTimeFilter ( givenTime ) ;
56
56
57
57
// then
58
58
expect ( relativeTime ) . toEqual ( 'just now' ) ;
59
59
} ) ;
60
60
61
- it ( " should return 'a second' string if given time is a second before current time" , ( ) => {
61
+ it ( ' should return \ 'a second\ ' string if given time is a second before current time' , ( ) => {
62
62
// given
63
63
givenTime . setSeconds ( givenTime . getSeconds ( ) - 1 ) ;
64
64
@@ -69,7 +69,7 @@ describe('Relative time filter', () => {
69
69
expect ( relativeTime ) . toEqual ( 'a second' ) ;
70
70
} ) ;
71
71
72
- it ( " should return '15 seconds' string if given time is 15 seconds before current time" , ( ) => {
72
+ it ( ' should return \ '15 seconds\ ' string if given time is 15 seconds before current time' , ( ) => {
73
73
// given
74
74
givenTime . setSeconds ( givenTime . getSeconds ( ) - 15 ) ;
75
75
@@ -80,7 +80,7 @@ describe('Relative time filter', () => {
80
80
expect ( relativeTime ) . toEqual ( '15 seconds' ) ;
81
81
} ) ;
82
82
83
- it ( " should return 'a minute' string if given time is a minute before current time" , ( ) => {
83
+ it ( ' should return \ 'a minute\ ' string if given time is a minute before current time' , ( ) => {
84
84
// given
85
85
givenTime . setMinutes ( givenTime . getMinutes ( ) - 1 ) ;
86
86
@@ -91,7 +91,7 @@ describe('Relative time filter', () => {
91
91
expect ( relativeTime ) . toEqual ( 'a minute' ) ;
92
92
} ) ;
93
93
94
- it ( " should return '30 minutes' string if given time is 30 minutes before current time" , ( ) => {
94
+ it ( ' should return \ '30 minutes\ ' string if given time is 30 minutes before current time' , ( ) => {
95
95
// given
96
96
givenTime . setMinutes ( givenTime . getMinutes ( ) - 30 ) ;
97
97
@@ -102,7 +102,7 @@ describe('Relative time filter', () => {
102
102
expect ( relativeTime ) . toEqual ( '30 minutes' ) ;
103
103
} ) ;
104
104
105
- it ( " should return 'an hour' string if given time is an hour before current time" , ( ) => {
105
+ it ( ' should return \ 'an hour\ ' string if given time is an hour before current time' , ( ) => {
106
106
// given
107
107
givenTime . setHours ( givenTime . getHours ( ) - 1 ) ;
108
108
@@ -113,7 +113,7 @@ describe('Relative time filter', () => {
113
113
expect ( relativeTime ) . toEqual ( 'an hour' ) ;
114
114
} ) ;
115
115
116
- it ( " should return '3 hours' string if given time is 3 hours before current time" , ( ) => {
116
+ it ( ' should return \ '3 hours\ ' string if given time is 3 hours before current time' , ( ) => {
117
117
// given
118
118
givenTime . setHours ( givenTime . getHours ( ) - 3 ) ;
119
119
@@ -124,7 +124,7 @@ describe('Relative time filter', () => {
124
124
expect ( relativeTime ) . toEqual ( '3 hours' ) ;
125
125
} ) ;
126
126
127
- it ( " should return 'a day' string if given time is a day before current time" , ( ) => {
127
+ it ( ' should return \ 'a day\ ' string if given time is a day before current time' , ( ) => {
128
128
// given
129
129
givenTime . setDate ( givenTime . getDate ( ) - 1 ) ;
130
130
@@ -135,7 +135,7 @@ describe('Relative time filter', () => {
135
135
expect ( relativeTime ) . toEqual ( 'a day' ) ;
136
136
} ) ;
137
137
138
- it ( " should return '8 days' string if given time is 8 days before current time" , ( ) => {
138
+ it ( ' should return \ '8 days\ ' string if given time is 8 days before current time' , ( ) => {
139
139
// given
140
140
givenTime . setDate ( givenTime . getDate ( ) - 8 ) ;
141
141
@@ -146,7 +146,7 @@ describe('Relative time filter', () => {
146
146
expect ( relativeTime ) . toEqual ( '8 days' ) ;
147
147
} ) ;
148
148
149
- it ( " should return 'a month' string if given time is a month before current time" , ( ) => {
149
+ it ( ' should return \ 'a month\ ' string if given time is a month before current time' , ( ) => {
150
150
// given
151
151
givenTime . setMonth ( givenTime . getMonth ( ) - 1 ) ;
152
152
@@ -157,7 +157,7 @@ describe('Relative time filter', () => {
157
157
expect ( relativeTime ) . toEqual ( 'a month' ) ;
158
158
} ) ;
159
159
160
- it ( " should return '11 months' string if given time is 11 months before current time" , ( ) => {
160
+ it ( ' should return \ '11 months\ ' string if given time is 11 months before current time' , ( ) => {
161
161
// given
162
162
givenTime . setMonth ( givenTime . getMonth ( ) - 11 ) ;
163
163
@@ -168,7 +168,7 @@ describe('Relative time filter', () => {
168
168
expect ( relativeTime ) . toEqual ( '11 months' ) ;
169
169
} ) ;
170
170
171
- it ( " should return 'a year' string if given time is a year before current time" , ( ) => {
171
+ it ( ' should return \ 'a year\ ' string if given time is a year before current time' , ( ) => {
172
172
// given
173
173
givenTime . setYear ( givenTime . getFullYear ( ) - 1 ) ;
174
174
@@ -179,7 +179,7 @@ describe('Relative time filter', () => {
179
179
expect ( relativeTime ) . toEqual ( 'a year' ) ;
180
180
} ) ;
181
181
182
- it ( " should return '134 years' string if given time is 134 years before current time" , ( ) => {
182
+ it ( ' should return \ '134 years\ ' string if given time is 134 years before current time' , ( ) => {
183
183
// given
184
184
givenTime . setYear ( givenTime . getFullYear ( ) - 134 ) ;
185
185
@@ -190,8 +190,8 @@ describe('Relative time filter', () => {
190
190
expect ( relativeTime ) . toEqual ( '134 years' ) ;
191
191
} ) ;
192
192
193
- it ( " should return '11 months' string if given time is 11 months, 7 days, 5 hours and 3 minutes" +
194
- " before current time" ,
193
+ it ( ' should return \ '11 months\ ' string if given time is 11 months, 7 days, 5 hours and 3 minutes' +
194
+ ' before current time' ,
195
195
( ) => {
196
196
// given
197
197
givenTime . setMonth ( givenTime . getMonth ( ) - 11 ) ;
0 commit comments