Skip to content

Commit 5443937

Browse files
committed
update test
1 parent 21a564e commit 5443937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function test(base64, omitPadding) {
2222
console.log(enc)
2323
if (omitPadding) {
2424
if (enc.endsWith('=')) process.exit(1)
25-
} else if (v.length % 3 && !enc.endsWith('=')) {
25+
} else if (v.length % 3 && !enc.endsWith('='.repeat(3 - (v.length % 3)))) {
2626
process.exit(1)
2727
}
2828
var isEqual = false

0 commit comments

Comments
 (0)