trying to fix unit test execution in Travis

This commit is contained in:
El RIDO 2017-04-05 06:55:20 +02:00
parent 8f6c1ee079
commit 41701bbfe4
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -547,15 +547,13 @@ describe('CryptTool', function () {
});
describe('Base64.js vs SJCL.js vs abab.js', function () {
var btoa = require('abab').btoa;
jsc.property(
'these all return the same base64 string',
'string',
function(string) {
var base64 = Base64.toBase64(string),
sjcl = global.sjcl.codec.base64.fromBits(global.sjcl.codec.utf8String.toBits(string)),
abab = btoa(Base64.utob(string));
abab = window.btoa(Base64.utob(string));
return base64 === sjcl && sjcl === abab;
}
);