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 cb67c39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 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 \n\
>> 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,8 +46,8 @@ 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');
assert.pushResult({ result: actual.includes(expected), actual, expected });
const actual = e.stdout.replace(/at .*[/\\]([^/\\]+\.html)(:\d+)?.*$/gm, 'at file:$1$2');
assert.pushResult({ result: actual.includes(expected), actual, expected }, 'stdout');
assert.true(e.status > 0, 'non-zero exit code');
}
});
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 cb67c39

Please sign in to comment.