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 5efaf28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions test/integration/grunt-contrib-qunit.js
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
// FIXME: Error line is off by one in Chrome, broke betweeen Puppeteer 9 and 21.
uncaught: ['fail-uncaught', `Testing fail-uncaught.html
>> Error: ReferenceError: boom is not defined
>> at file:fail-uncaught.html:16`]
>> 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
@@ -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 5efaf28

Please sign in to comment.