Skip to content

Commit

Permalink
Fix SassCalculation.clamp test (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Jul 21, 2023
1 parent e6e6762 commit 2918dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js-api-spec/value/calculation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ describe('SassCalculation', () => {
).toThrow();
});

it('clamp() with the wrong number of arguments', () => {
const fn = () => SassCalculation.clamp(new CalculationInterpolation('1'));
it('clamp() with the wrong argument', () => {
const fn = () => SassCalculation.clamp(new SassNumber(1));
expect(() =>
compileString('a {b: foo()}', {
functions: {'foo()': fn},
})
).toThrowError(/exactly 3 arguments/);
).toThrowError(/SassString or CalculationInterpolation/);
});

it('an unknown calculation function', () => {
Expand Down

0 comments on commit 2918dab

Please sign in to comment.