mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-23 04:46:27 +00:00
16 lines
490 B
JavaScript
16 lines
490 B
JavaScript
|
import { Base64 } from '../dist/esm/index.js'
|
||
|
import { Precomputed } from './values.js'
|
||
|
|
||
|
describe('Encoding', () => {
|
||
|
describe('Base64', () => {
|
||
|
for (const [input, output] of Object.entries(Precomputed.Encoding.Base64)) {
|
||
|
it(`Should encode ${input} to ${output}`, () => {
|
||
|
chai.expect(Base64.encode(input)).to.equal(output)
|
||
|
})
|
||
|
it(`Should decode ${output} to ${input}`, () => {
|
||
|
chai.expect(Base64.decode(output)).to.equal(input)
|
||
|
})
|
||
|
}
|
||
|
})
|
||
|
})
|