@@ -161,50 +161,6 @@ describe('DateTime', () => {
161
161
} ) ;
162
162
} ) ;
163
163
} ) ;
164
- describe ( 'dateTime.getISOFields() works' , ( ) => {
165
- const dt1 = PlainDateTime . from ( '1976-11-18T15:23:30.123456789' ) ;
166
- const fields = dt1 . getISOFields ( ) ;
167
- it ( 'fields' , ( ) => {
168
- equal ( fields . isoYear , 1976 ) ;
169
- equal ( fields . isoMonth , 11 ) ;
170
- equal ( fields . isoDay , 18 ) ;
171
- equal ( fields . isoHour , 15 ) ;
172
- equal ( fields . isoMinute , 23 ) ;
173
- equal ( fields . isoSecond , 30 ) ;
174
- equal ( fields . isoMillisecond , 123 ) ;
175
- equal ( fields . isoMicrosecond , 456 ) ;
176
- equal ( fields . isoNanosecond , 789 ) ;
177
- equal ( fields . calendar . id , 'iso8601' ) ;
178
- } ) ;
179
- it ( 'enumerable' , ( ) => {
180
- const fields2 = { ...fields } ;
181
- equal ( fields2 . isoYear , 1976 ) ;
182
- equal ( fields2 . isoMonth , 11 ) ;
183
- equal ( fields2 . isoDay , 18 ) ;
184
- equal ( fields2 . isoHour , 15 ) ;
185
- equal ( fields2 . isoMinute , 23 ) ;
186
- equal ( fields2 . isoSecond , 30 ) ;
187
- equal ( fields2 . isoMillisecond , 123 ) ;
188
- equal ( fields2 . isoMicrosecond , 456 ) ;
189
- equal ( fields2 . isoNanosecond , 789 ) ;
190
- equal ( fields2 . calendar , fields . calendar ) ;
191
- } ) ;
192
- it ( 'as input to constructor' , ( ) => {
193
- const dt2 = new PlainDateTime (
194
- fields . isoYear ,
195
- fields . isoMonth ,
196
- fields . isoDay ,
197
- fields . isoHour ,
198
- fields . isoMinute ,
199
- fields . isoSecond ,
200
- fields . isoMillisecond ,
201
- fields . isoMicrosecond ,
202
- fields . isoNanosecond ,
203
- fields . calendar
204
- ) ;
205
- assert ( dt2 . equals ( dt1 ) ) ;
206
- } ) ;
207
- } ) ;
208
164
describe ( 'dateTime.withCalendar()' , ( ) => {
209
165
const dt1 = PlainDateTime . from ( '1976-11-18T15:23:30.123456789' ) ;
210
166
it ( 'works' , ( ) => {
0 commit comments