Skip to content

Commit

Permalink
test: last unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Jul 24, 2020
1 parent 70a9a66 commit 5c2f2e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vx-scale/test/scaleTime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ describe('scaleTime()', () => {
const scale = scaleTime({ domain: unniceDomain, nice: { interval: 'hour', step: 3 } });
expect(scale.domain()).toEqual([new Date(2020, 0, 1), new Date(2020, 0, 9, 21)]);
});
it('invalid nice object', () => {
const scale = scaleTime({ domain: unniceDomain, nice: { interval: 'hour', step: NaN } });
expect(scale.domain()).toEqual(unniceDomain);
});
});
describe('set round', () => {
it('true', () => {
Expand Down

0 comments on commit 5c2f2e9

Please sign in to comment.