Skip to content

Commit

Permalink
Merge 8bf2412 into b8882eb
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed May 8, 2021
2 parents b8882eb + 8bf2412 commit a4f31bc
Show file tree
Hide file tree
Showing 20 changed files with 1,081 additions and 142 deletions.
4 changes: 2 additions & 2 deletions __tests__/unit/scales/base.spec.ts
@@ -1,5 +1,5 @@
import { Base } from '../../../src/scales/base';
import { BaseOptions, Domain, Range } from '../../../src/types';
import { Base, BaseOptions } from '../../../src';
import { Domain, Range } from '../../../src/types';

class Scale extends Base<BaseOptions> {
protected getDefaultOptions() {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/unit/scales/time.spec.ts
Expand Up @@ -84,11 +84,12 @@ describe('Time', () => {
test('getTicks() calls options.tickMethod and return its return value', () => {
const scale = new Time({
tickInterval: 100,
tickMethod: (min, max, count, interval) => {
tickMethod: (min, max, count, interval, utc) => {
expect(min).toEqual(new Date(2000, 0, 1));
expect(max).toEqual(new Date(2000, 0, 2));
expect(count).toBe(5);
expect(interval).toBe(100);
expect(utc).toBe(false);
return [];
},
});
Expand Down

0 comments on commit a4f31bc

Please sign in to comment.