Skip to content

Commit

Permalink
Corrected some test descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
licitdev committed Jul 6, 2019
1 parent aae53cb commit 595c6bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ describe('when encoding and decoding with shuffle', () => {
assert.deepEqual(NaN, decoded);
});

it('should return NaN when .decode with an invalid hash without salt', () => {
it('should return NaN when .decode with an invalid hash with salt', () => {
let hash = 'fakehash';
let salt = 'somesalt';
let decoded = seededHashids.decode('user', hash, salt);
Expand All @@ -496,7 +496,7 @@ describe('when encoding and decoding with shuffle', () => {
assert.deepEqual('', decoded);
});

it('should return an empty string when .decodeHex with an invalid hash without salt', () => {
it('should return an empty string when .decodeHex with an invalid hash with salt', () => {
let hash = 'fakehash';
let salt = 'somesalt';
let decoded = seededHashids.decodeHex('user', hash, salt);
Expand All @@ -510,7 +510,7 @@ describe('when encoding and decoding with shuffle', () => {
assert.deepEqual(null, decoded);
});

it('should return null when .decodeObjectId with an invalid hash without salt', () => {
it('should return null when .decodeObjectId with an invalid hash with salt', () => {
let hex = 'abcdef1234567890';
let salt = 'somesalt';
let encoded = seededHashids.encodeHex('user', hex, salt);
Expand Down Expand Up @@ -582,7 +582,7 @@ describe('when encoding and decoding without shuffle', () => {
assert.deepEqual(NaN, decoded);
});

it('should return NaN when .decode with an invalid hash without salt', () => {
it('should return NaN when .decode with an invalid hash with salt', () => {
let hash = 'fakehash';
let salt = 'somesalt';
let decoded = seededHashids.decode('user', hash, salt);
Expand All @@ -595,7 +595,7 @@ describe('when encoding and decoding without shuffle', () => {
assert.deepEqual('', decoded);
});

it('should return an empty string when .decodeHex with an invalid hash without salt', () => {
it('should return an empty string when .decodeHex with an invalid hash with salt', () => {
let hash = 'fakehash';
let salt = 'somesalt';
let decoded = seededHashids.decodeHex('user', hash, salt);
Expand Down

0 comments on commit 595c6bb

Please sign in to comment.