Closed skysteve closed 7 years ago
Add a getDisallowedPaths method to return an array of all the paths explicitly blocked for the specified user agent AND the * "UA".
getDisallowedPaths
Note: I couldn't work out how the tests executed so I wrote a quick test runner
const tests = require('./tests/parser.test'); Object.keys(tests).forEach((testName) => { console.log(testName); tests[testName](); });
but that flagged up that that the assert.eql method doesn't exist in node 8, so I had to change the tests that relied on it to strictEqual or deepEqual.
assert.eql
strictEqual
deepEqual
Any issues please let me know 🙂
There're no issues (at first glance ;))! Great patch! Thank you very much!
no worries, if you could give me a shout when you've done the release that would be much appreciated 🙂
Done:
Add a
getDisallowedPaths
method to return an array of all the paths explicitly blocked for the specified user agent AND the * "UA".Note: I couldn't work out how the tests executed so I wrote a quick test runner
but that flagged up that that the
assert.eql
method doesn't exist in node 8, so I had to change the tests that relied on it tostrictEqual
ordeepEqual
.Any issues please let me know 🙂