From 41701bbfe4b1e89eb56967905552099a296624b0 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Wed, 5 Apr 2017 06:55:20 +0200 Subject: [PATCH] trying to fix unit test execution in Travis --- js/test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/test.js b/js/test.js index 88dcf58..c6e5c7a 100644 --- a/js/test.js +++ b/js/test.js @@ -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; } );