From 39714d686ed20a1db6f89bca2eed2312c2286eca Mon Sep 17 00:00:00 2001 From: Jonathan Zong Date: Fri, 26 Jan 2024 17:19:37 -0500 Subject: [PATCH] actually commit the file --- test/compile/scale/type.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/compile/scale/type.test.ts b/test/compile/scale/type.test.ts index 9546fd6e07..bf3c7ad73b 100644 --- a/test/compile/scale/type.test.ts +++ b/test/compile/scale/type.test.ts @@ -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.', () => { @@ -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()', () => {