diff --git a/test/helpers.js b/test/helpers.js index e202fb9f4..553db161e 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -112,7 +112,7 @@ mocks.init = function(fixtures, controllerName, opts, done) { var headers = JSON.stringify(bwc._getHeaders(method, url, args)); // Fixes BWC version... TODO - headers = headers.replace(/bwc-\d\.\d\.\d/, 'bwc-2.4.0') + 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));