Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Co-authored-by: Al-Jami Ismail <aljami1379@gmail.com>
  • Loading branch information
lsh and Jami159 committed Apr 22, 2024
1 parent b786411 commit 40212d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/vega-encode/test/scale-test.js
Expand Up @@ -63,6 +63,17 @@ tape('Scale respects domain padding', t => {
}).domain();
t.deepEqual(d, [0, 100]);

d = scale({
type: 'linear',
domain: [0, 100],
range: [0, 100],
padding: 5,
domainMin: 5,
domainMax: 95,
zero: false
}).domain();
t.deepEqual(d, [0, 100]);

// test log scale padding
d = scale({
type: 'log',
Expand Down

0 comments on commit 40212d6

Please sign in to comment.