Skip to content

Commit

Permalink
actually commit the file
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanzong committed Jan 26, 2024
1 parent 73eca51 commit 39714d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/compile/scale/type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ describe('compile/scale', () => {
expect(scaleType({}, Y, {type: 'temporal', field: 'x', timeUnit}, 'point')).toEqual(ScaleType.UTC);
}
});

describe('time (animation)', () => {
it('should return linear scale for temporal data by default.', () => {
expect(scaleType({}, 'time', {type: 'temporal'}, 'point')).toEqual(ScaleType.LINEAR);
});
});
});
describe('quantitative', () => {
it('should return linear scale for quantitative color field by default.', () => {
Expand Down Expand Up @@ -231,6 +237,12 @@ describe('compile/scale', () => {
it('should return linear scale for quantitative x and y.', () => {
expect(scaleType({}, 'x', {type: 'quantitative', field: 'x', bin: true}, 'point')).toEqual(ScaleType.LINEAR);
});

describe('time (animation)', () => {
it('should return linear scale for temporal data by default.', () => {
expect(scaleType({}, 'time', {type: 'temporal'}, 'point')).toEqual(ScaleType.LINEAR);
});
});
});

describe('dataTypeMatchScaleType()', () => {
Expand Down

0 comments on commit 39714d6

Please sign in to comment.