--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
27
node_modules/js-base64/test/es5.js
generated
vendored
Normal file
27
node_modules/js-base64/test/es5.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* $Id: es5.js,v 0.1 2012/08/23 19:43:17 dankogai Exp dankogai $
|
||||
*
|
||||
* use mocha to test me
|
||||
* http://visionmedia.github.com/mocha/
|
||||
*/
|
||||
var assert, Base64;
|
||||
if (this['window'] !== this) {
|
||||
assert = require("assert");
|
||||
Base64 = require('../base64.js').Base64;
|
||||
}
|
||||
var is = function (a, e, m) {
|
||||
return function () {
|
||||
assert.equal(a, e, m)
|
||||
}
|
||||
};
|
||||
|
||||
if ('extendString' in Base64){
|
||||
Base64.extendString();
|
||||
describe('String', function () {
|
||||
it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
|
||||
it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
|
||||
it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
|
||||
it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
|
||||
it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
|
||||
});
|
||||
}
|
||||
Loading…
Reference in a new issue