Skip to content

Commit

Permalink
fix: add extra test for clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
doggodoge committed Oct 4, 2022
1 parent 1bb7ce0 commit c2fbcd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fancy-password-input",
"version": "0.1.2",
"version": "0.1.3",
"description": "A kinda cool fancy password input",
"license": "MIT",
"svelte": "index.js",
Expand Down
1 change: 1 addition & 0 deletions src/components/utils/__tests__/clamp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe.each`
${1000} | ${1} | ${200} | ${200}
${15} | ${15} | ${20} | ${15}
${15} | ${15} | ${15} | ${15}
${20} | ${15} | ${20} | ${20}
`('clamp($input, $lower, $upper)', ({ input, lower, upper, expected }) => {
test(`get ${expected} from input ${input}, lower bound ${lower}, and upper bound ${upper}`, () => {
expect(clamp(input, lower, upper)).toBe(expected);
Expand Down

0 comments on commit c2fbcd7

Please sign in to comment.