mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
14 lines
364 B
JavaScript
14 lines
364 B
JavaScript
var assert = require('assert')
|
|
var Base62 = require('../base62')
|
|
|
|
describe("encode", function() {
|
|
it("should encode a number to a Base62 string", function() {
|
|
assert.equal(Base62.encode(999), 'g7')
|
|
});
|
|
});
|
|
|
|
describe("decode", function() {
|
|
it("should decode a number from a Base62 string", function() {
|
|
assert.equal(Base62.decode('g7'), 999)
|
|
});
|
|
}); |