This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/js-base64/test/yoshinoya.js

20 lines
671 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
/*
* use mocha to test me
* http://visionmedia.github.com/mocha/
*/
var assert = assert || require("assert");
var Base64 = Base64 || require('../base64.js').Base64;
var is = function (a, e, m) {
return function () {
assert.equal(a, e, m)
}
};
describe('Yoshinoya', function () {
it('.encode', is(Base64.encode('𠮷野家'), '8KCut+mHjuWutg=='));
it('.encodeURI', is(Base64.encodeURI('𠮷野家'), '8KCut-mHjuWutg'));
it('.decode', is(Base64.decode('8KCut+mHjuWutg=='), '𠮷野家'));
it('.decode', is(Base64.decode('8KCut-mHjuWutg'), '𠮷野家'));
/* it('.decode', is(Base64.decode('7aGC7b636YeO5a62'), '𠮷野家')); */
});