Comparing version 2.6.0 to 2.6.1
@@ -62,9 +62,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
nockBack.fixtures = opts.cassetteFolder; | ||
nockListener.subscribe('no match', (_, req) => { | ||
nockListener.subscribe('no match', (_, req, body) => { | ||
assert(hasCassette === true); | ||
if (opts.heal !== false) { | ||
const reqKey = `${req.method} ${req.href}`; | ||
const requestBody = get(req, ['_rp_options', 'body']); | ||
const reqKey = `${req.method} ${req.proto}://${req.hostname}:${req.port}${req.path}`; | ||
let requestBody = body; | ||
try { | ||
requestBody = JSON.parse(body); | ||
} finally { | ||
/* */ | ||
} | ||
for (let idx = 0; idx < pendingMocks.length; idx += 1) { | ||
@@ -157,2 +163,2 @@ const mock = pendingMocks[idx]; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3JlcXVlc3QtcmVjb3JkZXIuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsInBhdGgiLCJnZXQiLCJpc0VxdWFsIiwiZnMiLCJKb2kiLCJub2NrIiwibm9ja0xpc3RlbmVyIiwibm9ja0JhY2siLCJiYWNrIiwiYnVpbGRLZXkiLCJpbnRlcmNlcHRvciIsIm1ldGhvZCIsImJhc2VQYXRoIiwidXJpIiwibW9kdWxlIiwiZXhwb3J0cyIsIm9wdHMiLCJvYmplY3QiLCJrZXlzIiwiY2Fzc2V0dGVGb2xkZXIiLCJzdHJpbmciLCJzdHJpcEhlYWRlcnMiLCJib29sZWFuIiwic3RyaWN0IiwiaGVhbCIsImFsdGVybmF0aXZlcyIsIm5vY2tEb25lIiwiY2Fzc2V0dGVGaWxlUGF0a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Sgnbm8gbWF0Y2gnLCAoXywgcmVxKSA9PiB7XG4gICAgICAgIGFzc2VydChoYXNDYXNzZXR0ZSA9PT0gdHJ1ZSk7XG4gICAgICAgIGlmIChvcHRzLmhlYWwgIT09IGZhbHNlKSB7XG4gICAgICAgICAgY29uc3QgcmVxS2V5ID0gYCR7cmVxLm1ldGhvZH0gJHtyZXEuaHJlZn1gO1xuICAgICAgICAgIGNvbnN0IHJlcXVlc3RCb2R5ID0gZ2V0KHJlcSwgWydfcnBfb3B0aW9ucycsICdib2R5J10pO1xuICAgICAgICAgIGZvciAobGV0IGlkeCA9IDA7IGlkeCA8IHBlbmRpbmdNb2Nrcy5sZW5ndGg7IGlkeCArPSAxKSB7XG4gICAgICAgICAgICBjb25zdCBtb2NrID0gcGVuZGluZ01vY2tzW2lkeF07XG4gICAgICAgICAgICBpZiAobW9jay5rZXkgPT09IHJlcUtleSkge1xuICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgb3B0cy5oZWFsID09PSB0cnVlXG4gICAgICAgICAgICAgICAgfHwgKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGNvbnN0IGlkZW50aWZpZXJQYXRoID0gb3B0cy5oZWFsO1xuICAgICAgICAgICAgICAgICAgY29uc3QgcmVxdWVzdElkZW50aWZpZXIgPSBnZXQocmVxdWVzdEJvZHksIGlkZW50aWZpZXJQYXRoKTtcbiAgICAgICAgICAgICAgICAgIGlmIChyZXF1ZXN0SWRlbnRpZmllciA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGNvbnN0IHJlY29yZGluZ0JvZHkgPSBnZXQobW9jaywgWydyZWNvcmQnLCAnYm9keSddKTtcbiAgICAgICAgICAgICAgICAgIGNvbnN0IHJlY29yZGluZ0lkZW50aWZpZXIgPSBnZXQocmVjb3JkaW5nQm9keSwgaWRlbnRpZmllclBhdGgpO1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGlzRXF1YWwocmVjb3JkaW5nSWRlbnRpZmllciwgcmVxdWVzdElkZW50aWZpZXIpO1xuICAgICAgICAgICAgICAgIH0pKClcbiAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgZXhwZWN0ZWRDYXNzZXR0ZS5wdXNoKHsgLi4ubW9jay5yZWNvcmQsIGJvZHk6IHJlcXVlc3RCb2R5IH0pO1xuICAgICAgICAgICAgICAgIHBlbmRpbmdNb2Nrcy5zcGxpY2UoaWR4LCAxKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgICBub2NrRG9uZSA9IGF3YWl0IG5ldyBQcm9taXNlKChyZXNvbHZlKSA9PiBub2NrQmFjayhjYXNzZXR0ZUZpbGUsIHtcbiAgICAgICAgYmVmb3JlOiAocikgPT4ge1xuICAgICAgICAgIHJlY29yZHMucHVzaChyKTtcbiAgICAgICAgICByZXR1cm4gcjtcbiAgICAgICAgfSxcbiAgICAgICAgYWZ0ZXI6IChzY29wZSkgPT4ge1xuICAgICAgICAgIHNjb3BlLm9uKCdyZXF1ZXN0JywgKHJlcSwgaW50ZXJjZXB0b3IpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IG1hdGNoZWRLZXkgPSBidWlsZEtleShpbnRlcmNlcHRvcik7XG4gICAgICAgICAgICBjb25zdCBpZHggPSBwZW5kaW5nTW9ja3MuZmluZEluZGV4KChlKSA9PiBlLmtleSA9PT0gbWF0Y2hlZEtleSk7XG4gICAgICAgICAgICBleHBlY3RlZENhc3NldHRlLnB1c2gocGVuZGluZ01vY2tzW2lkeF0ucmVjb3JkKTtcbiAgICAgICAgICAgIHBlbmRpbmdNb2Nrcy5zcGxpY2UoaWR4LCAxKTtcbiAgICAgICAgICAgIGlmIChpZHggIT09IDApIHtcbiAg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xlbmd0aDsgaWR4ICs9IDEpIHtcbiAgICAgICAgICAgIGNvbnN0IG1vY2sgPSBwZW5kaW5nTW9ja3NbaWR4XTtcbiAgICAgICAgICAgIGlmIChtb2NrLmtleSA9PT0gcmVxS2V5KSB7XG4gICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICBvcHRzLmhlYWwgPT09IHRydWVcbiAgICAgICAgICAgICAgICB8fCAoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgY29uc3QgaWRlbnRpZmllclBhdGggPSBvcHRzLmhlYWw7XG4gICAgICAgICAgICAgICAgICBjb25zdCByZXF1ZXN0SWRlbnRpZmllciA9IGdldChyZXF1ZXN0Qm9keSwgaWRlbnRpZmllclBhdGgpO1xuICAgICAgICAgICAgICAgICAgaWYgKHJlcXVlc3RJZGVudGlmaWVyID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgY29uc3QgcmVjb3JkaW5nQm9keSA9IGdldChtb2NrLCBbJ3JlY29yZCcsICdib2R5J10pO1xuICAgICAgICAgICAgICAgICAgY29uc3QgcmVjb3JkaW5nSWRlbnRpZmllciA9IGdldChyZWNvcmRpbmdCb2R5LCBpZGVudGlmaWVyUGF0aCk7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gaXNFcXVhbChyZWNvcmRpbmdJZGVudGlmaWVyLCByZXF1ZXN0SWRlbnRpZmllcik7XG4gICAgICAgICAgICAgICAgfSkoKVxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICBleHBlY3RlZENhc3NldHRlLnB1c2goeyAuLi5tb2NrLnJlY29yZCwgYm9keTogcmVxdWVzdEJvZHkgfSk7XG4gICAgICAgICAgICAgICAgcGVuZGluZ01vY2tzLnNwbGljZShpZHgsIDEpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KTtcbiAgICAgIG5vY2tEb25lID0gYXdhaXQgbmV3IFByb21pc2UoKHJlc29sdmUpID0+IG5vY2tCYWNrKGNhc3NldHRlRmlsZSwge1xuICAgICAgICBiZWZvcmU6IChyKSA9PiB7XG4gICAgICAgICAgcmVjb3Jkcy5wdXNoKHIpO1xuICAgICAgICAgIHJldHVybiByO1xuICAgICAgICB9LFxuICAgICAgICBhZnRlcjogKHNjb3BlKSA9PiB7XG4gICAgICAgICAgc2NvcGUub24oJ3JlcXVlc3QnLCAocmVxLCBpbnRlcmNlcHRvcikgPT4ge1xuICAgICAgICAgICAgY29uc3QgbWF0Y2hlZEtleSA9IGJ1aWxkS2V5KGludGVyY2VwdG9yKTtcbiAgICAgICAgICAgIGNvbnN0IGlkeCA9IHBlbmRpbmdNb2Nrcy5maW5kSW5kZXgoKGUpID0+IGUua2V5ID09PSBtYXRjaGVkS2V5KTtcbiAgICAgICAgICAgIGV4cGVjdGVkQ2Fzc2V0dGUucHVzaChwZW5kaW5nTW9ja3NbaWR4XS5yZWNvcmQpO1xuICAgICAgICAgICAgcGVuZGluZ01vY2tzLnNwbGljZShpZHgsIDEpO1xuICAgICAgICAgICAgaWYgKGlkeCAhPT0gMCkge1xuICAgICAgICAgICAgICBvdXRPZk9yZGVyRXJyb3JzLnB1c2gobWF0Y2hlZEtleSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICAgIGFmdGVyUmVjb3JkOiAocmVjb3JkaW5ncykgPT4gSlNPTlxuICAgICAgICAgIC5zdHJpbmdpZnkob3B0cy5zdHJpcEhlYWRlcnMgPT09IHRydWUgPyByZWNvcmRpbmdzLm1hcCgocikgPT4ge1xuICAgICAgICAgICAgY29uc3QgcmVzID0geyAuLi5yIH07XG4gICAgICAgICAgICBkZWxldGUgcmVzLnJhd0hlYWRlcnM7XG4gICAgICAgICAgICByZXR1cm4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cy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBVbmV4cGVjdGVkIGZpbGUocykgaW4gY2Fzc2V0dGUgZm9sZGVyOiAke3VuZXhwZWN0ZWRGaWxlcy5qb2luKCcsICcpfWApO1xuICAgICAgfVxuICAgIH0sXG4gICAgZ2V0OiAoKSA9PiAoe1xuICAgICAgcmVjb3JkczogcmVjb3Jkcy5zbGljZSgpLFxuICAgICAgb3V0T2ZPcmRlckVycm9yczogb3V0T2ZPcmRlckVycm9ycy5zbGljZSgpLFxuICAgICAgdW5tYXRjaGVkUmVjb3JkaW5nczogcGVuZGluZ01vY2tzLm1hcCgoZSkgPT4gZS5rZXkpLnNsaWNlKCksXG4gICAgICBleHBlY3RlZENhc3NldHRlOiBleHBlY3RlZENhc3NldHRlLnNsaWNlKCksXG4gICAgICBjYXNzZXR0ZUZpbGVQYXRoXG4gICAgfSlcbiAgfSk7XG59O1xuIl19 |
{ | ||
"name": "node-tdd", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Drop in extension for mocha to abstract commonly used test setups", | ||
@@ -48,3 +48,3 @@ "main": "lib/index.js", | ||
"@blackflux/eslint-plugin-rules": "1.3.23", | ||
"@blackflux/robo-config-plugin": "3.0.5", | ||
"@blackflux/robo-config-plugin": "3.0.8", | ||
"babel-eslint": "10.0.3", | ||
@@ -60,3 +60,3 @@ "chai": "4.2.0", | ||
"fancy-log": "1.3.3", | ||
"js-gardener": "2.0.128", | ||
"js-gardener": "2.0.129", | ||
"nyc": "15.0.0", | ||
@@ -63,0 +63,0 @@ "request": "2.88.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93815
561