Skip to content

Commit

Permalink
Test: update grunt-contrib-qunit integration to 8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Sep 16, 2023
1 parent ddc5830 commit cd3b52e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions test/integration/grunt-contrib-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ QUnit.test.each('failing tests', {
>> Expected: undefined
>> Error: No tests were run.
>> at `],
uncaught: ['fail-uncaught', `Testing fail-uncaught.html
>> Error: ReferenceError: boom is not defined
>> at file:fail-uncaught.html:16`]
// FIXME: Error line is off by one in Chrome, broke betweeen Puppeteer 9 and 21.
uncaught: ['fail-uncaught', `Testing fail-uncaught.html
>> ReferenceError: boom is not defined
>> at file:fail-uncaught.html:15`]
}, (assert, [command, expected]) => {
try {
const ret = cp.execSync('node_modules/.bin/grunt qunit:' + command, {
Expand All @@ -45,7 +46,7 @@ QUnit.test.each('failing tests', {
});
assert.equal(ret, null);
} catch (e) {
const actual = e.stdout.replace(/at .*[/\\]([^/\\]+\.html)(:\d+)?(:\d+)?/gm, 'at file:$1$2');
const actual = e.stdout.replace(/at .*[/\\]([^/\\]+\.html)(:\d+)?.*$/gm, 'at file:$1$2');
assert.pushResult({ result: actual.includes(expected), actual, expected });
assert.true(e.status > 0, 'non-zero exit code');
}
Expand Down
4 changes: 2 additions & 2 deletions test/integration/grunt-contrib-qunit/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"devDependencies": {
"grunt": "^1.5.1",
"grunt-contrib-qunit": "^6.2.0"
"grunt": "^1.6.1",
"grunt-contrib-qunit": "^8.0.1"
},
"scripts": {
"test": "grunt"
Expand Down

0 comments on commit cd3b52e

Please sign in to comment.