Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Nov 13, 2015
1 parent 59ba421 commit f5a7f4b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/encodedLength.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict'

const assert = require('assert')
const ShortUUID = require('..')

describe('ShortUUID#encodedLength()', () => {

let su

before(() => {
su = new ShortUUID()
})

it('should equal 22', () => {
assert.ok(su.encodedLength() === 22)
})

it('should equal 35', () => {
assert.ok(su.encodedLength(25) === 35)
})

it('should equal 14', () => {
assert.ok(su.encodedLength(10) === 14)
})

})

0 comments on commit f5a7f4b

Please sign in to comment.