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));