-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add tests for bigIntToBase64Url #49
base: main
Are you sure you want to change the base?
Conversation
}).toThrow("number cannot fit in a hex string of 2 characters"); | ||
}); | ||
|
||
it("contains bigIntToBase64Url", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rest of the above is formatting; this is the net-new test suite collection that needs review :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's a separate PR to deal with just prettifying: #50
auth/index.test.js
Outdated
expect(() => { TKHQ.bigIntToHex(BigInt(256), 2) }).toThrow("number cannot fit in a hex string of 2 characters"); | ||
}) | ||
expect(() => { | ||
TKHQ.bigIntToHex(BigInt(256), 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to add a similar expect(TKHQ.bigIntToBase64Url(BigInt(255), 2)).toThrow("number cannot fit in a hex string of 2 characters");
under the other bigIntToBase64Url
tests for completeness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call!
ebfd9da
to
52baccc
Compare
52baccc
to
2316ccd
Compare
$title
also formats the test file. perhaps format everything (e.g. via
prettier
) in a separate, standalone PR