From e9525687b7bfaa2bfee288af6419b92e472fca88 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 1 Jun 2016 16:13:11 -0300 Subject: [PATCH] fix helper --- test/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/helpers.js b/test/helpers.js index 5cbd13b30..1709270a0 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -103,6 +103,9 @@ mocks.init = function(fixtures, controllerName, opts, done) { function createHash(method, url, args) { var headers = JSON.stringify(bwc._getHeaders(method, url, args)); + + // Fixes BWC version... TODO + headers=headers.replace(/bwc-\d\.\d\.\d/,'bwc-2.4.0') var x = method + url + JSON.stringify(args) + headers; var sjcl = $delegate.getSJCL(); return sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(x));