mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 23:05:28 +00:00
663a5642c2
* Upgrade to 3.25 via ember-cli-update * v3.25.3...v3.26.1 * v3.26.1...v3.27.0 Co-authored-by: Michael Klein <michael@firstiwaslike.com>
22 lines
467 B
JavaScript
22 lines
467 B
JavaScript
import { module, test } from 'qunit';
|
|
import btoa from 'consul-ui/utils/btoa';
|
|
|
|
module('Unit | Utils | btoa', function () {
|
|
test('it encodes strings properly', function (assert) {
|
|
assert.expect(2);
|
|
[
|
|
{
|
|
test: '',
|
|
expected: '',
|
|
},
|
|
{
|
|
test: '1234',
|
|
expected: 'MTIzNA==',
|
|
},
|
|
].forEach(function (item) {
|
|
const actual = btoa(item.test);
|
|
assert.equal(actual, item.expected);
|
|
});
|
|
});
|
|
});
|