Skip to content

Commit

Permalink
Added test for charset with duplicated characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
licitdev committed Jul 5, 2019
1 parent c2afe76 commit 8c570ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ describe('when initializing', () => {
assert.throws(() => {
seededHashids.initialize({scopes: defaults.scopes, charset: 1234567890});
});
assert.throws(() => {
seededHashids.initialize({scopes: defaults.scopes, charset: '11223344556677889900'});
});
assert.throws(() => {
seededHashids.initialize({scopes: defaults.scopes, charset: {}});
});
Expand Down

0 comments on commit 8c570ef

Please sign in to comment.