diff --git a/packages/algorithm/tests/src/retro.spec.ts b/packages/algorithm/tests/src/retro.spec.ts index 205835682..8c98455bc 100644 --- a/packages/algorithm/tests/src/retro.spec.ts +++ b/packages/algorithm/tests/src/retro.spec.ts @@ -24,11 +24,11 @@ describe('@lumino/algorithm', () => { let retroable = { retro: () => iterator }; expect(retro(retroable)).to.equal(iterator); }); - }); - describe('retro()', () => { - testIterator(() => { - return [retro([1, 2, 3]), [3, 2, 1]]; + it('should reverse an array', () => { + testIterator(() => { + return [retro([1, 2, 3]), [3, 2, 1]]; + }); }); }); }); diff --git a/packages/algorithm/tests/src/take.spec.ts b/packages/algorithm/tests/src/take.spec.ts index 8295ef7cb..83a3828c7 100644 --- a/packages/algorithm/tests/src/take.spec.ts +++ b/packages/algorithm/tests/src/take.spec.ts @@ -12,13 +12,13 @@ import { take } from '@lumino/algorithm'; import { testIterator } from './iter.spec'; describe('@lumino/algorithm', () => { - describe('take()', () => { + describe('take() from an array', () => { testIterator(() => { return [take([1, 2, 3, 4, 5], 2), [1, 2]]; }); }); - describe('take()', () => { + describe('take() from an iterable iterator', () => { testIterator(() => { return [take([0, 1, 2, 3][Symbol.iterator](), 1), [0]]; });