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 b0227e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions packages/algorithm/tests/src/map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@ describe('@lumino/algorithm', () => {
return [it, result];
});
});

describe('map()', () => {
testIterator(() => {
let result = [0, 1, 8, 27];
let it = map([0, 1, 2, 3][Symbol.iterator](), x => x ** 3);
return [it, result];
});
});
});
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 b0227e8

Please sign in to comment.