Skip to content

Commit

Permalink
test: fix bad nock request matching
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Nov 16, 2020
1 parent fcfbc8e commit 605c964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/nock.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports = module.exports = (id, type, opts = {}) => {
if (opts.watchHtml) {
let file = buildFile(opts.watchHtml);
scopes.push(nock(YT_HOST, { reqheaders: opts.headers })
.filteringPath(/\/watch\?v=.+$/, '/watch?v=XXX')
.filteringPath(/\/watch\?v=.+&hl=en$/, '/watch?v=XXX')
.get('/watch?v=XXX')
.replyWithFile(opts.watchHtml[1] || 200,
path.join(__dirname, `${folder}/watch${file}.html`)));
Expand Down

0 comments on commit 605c964

Please sign in to comment.