Skip to content

Commit

Permalink
Clean up test labels as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Aug 16, 2022
1 parent a8455ef commit 547d400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/algorithm/tests/src/retro.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
});
});
});
});
4 changes: 2 additions & 2 deletions packages/algorithm/tests/src/take.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
});
Expand Down

0 comments on commit 547d400

Please sign in to comment.