trying to fix unit test execution in Travis
This commit is contained in:
parent
8f6c1ee079
commit
41701bbfe4
@ -547,15 +547,13 @@ describe('CryptTool', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('Base64.js vs SJCL.js vs abab.js', function () {
|
describe('Base64.js vs SJCL.js vs abab.js', function () {
|
||||||
var btoa = require('abab').btoa;
|
|
||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'these all return the same base64 string',
|
'these all return the same base64 string',
|
||||||
'string',
|
'string',
|
||||||
function(string) {
|
function(string) {
|
||||||
var base64 = Base64.toBase64(string),
|
var base64 = Base64.toBase64(string),
|
||||||
sjcl = global.sjcl.codec.base64.fromBits(global.sjcl.codec.utf8String.toBits(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;
|
return base64 === sjcl && sjcl === abab;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user