tracks/ecmascript/exercises/series/series.spec.js in trackler-2.2.0.0 vs tracks/ecmascript/exercises/series/series.spec.js in trackler-2.2.0.1
- old
+ new
@@ -1,9 +1,8 @@
import Series from './series';
describe('Series', () => {
-
test('has digits (short)', () => {
expect(new Series('01234').digits).toEqual([0, 1, 2, 3, 4]);
});
xtest('has digits (long)', () => {
@@ -50,11 +49,10 @@
expect(new Series('81228').slices(5))
.toEqual([[8, 1, 2, 2, 8]]);
});
xtest('throws an error if not enough digits to slice', () => {
- expect( () => {
+ expect(() => {
new Series('01032987583').slices(12);
}).toThrow(new Error('Slice size is too big.'));
});
-
});