Skip to content

Commit 4bacf8d

Browse files
committed
Update devDependencies.
1 parent 83fd91c commit 4bacf8d

File tree

3 files changed

+96
-62
lines changed

3 files changed

+96
-62
lines changed

js/tests/vendor/qunit.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* QUnit 2.4.0
2+
* QUnit 2.4.1
33
* https://qunitjs.com/
44
*
55
* Copyright jQuery Foundation and other contributors
66
* Released under the MIT license
77
* https://jquery.org/license
88
*
9-
* Date: 2017-07-08T15:20Z
9+
* Date: 2017-10-22T05:12Z
1010
*/
1111

1212
/** Font Family and Sizes */

js/tests/vendor/qunit.js

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*!
2-
* QUnit 2.4.0
2+
* QUnit 2.4.1
33
* https://qunitjs.com/
44
*
55
* Copyright jQuery Foundation and other contributors
66
* Released under the MIT license
77
* https://jquery.org/license
88
*
9-
* Date: 2017-07-08T15:20Z
9+
* Date: 2017-10-22T05:12Z
1010
*/
1111
(function (global$1) {
1212
'use strict';
1313

14-
global$1 = global$1 && 'default' in global$1 ? global$1['default'] : global$1;
14+
global$1 = 'default' in global$1 ? global$1['default'] : global$1;
1515

1616
var window = global$1.window;
1717
var self$1 = global$1.self;
@@ -1388,6 +1388,13 @@
13881388
this.async = false;
13891389
this.expected = 0;
13901390
} else {
1391+
if (typeof this.callback !== "function") {
1392+
var method = this.todo ? "todo" : "test";
1393+
1394+
// eslint-disable-next-line max-len
1395+
throw new TypeError("You must provide a function as a test callback to QUnit." + method + "(\"" + settings.testName + "\")");
1396+
}
1397+
13911398
this.assert = new Assert(this);
13921399
}
13931400
}
@@ -1697,13 +1704,16 @@
16971704
result: resultInfo.result,
16981705
message: resultInfo.message,
16991706
actual: resultInfo.actual,
1700-
expected: resultInfo.expected,
17011707
testId: this.testId,
17021708
negative: resultInfo.negative || false,
17031709
runtime: now() - this.started,
17041710
todo: !!this.todo
17051711
};
17061712

1713+
if (hasOwn.call(resultInfo, "expected")) {
1714+
details.expected = resultInfo.expected;
1715+
}
1716+
17071717
if (!resultInfo.result) {
17081718
source = resultInfo.source || sourceFromStacktrace();
17091719

@@ -1729,7 +1739,6 @@
17291739
result: false,
17301740
message: message || "error",
17311741
actual: actual || null,
1732-
expected: null,
17331742
source: source
17341743
});
17351744
},
@@ -2650,7 +2659,7 @@
26502659
QUnit.isLocal = !(defined.document && window.location.protocol !== "file:");
26512660

26522661
// Expose the current QUnit version
2653-
QUnit.version = "2.4.0";
2662+
QUnit.version = "2.4.1";
26542663

26552664
function createModule(name, testEnvironment, modifiers) {
26562665
var parentModule = moduleStack.length ? moduleStack.slice(-1)[0] : null;
@@ -3284,7 +3293,8 @@
32843293
// Skip inherited or undefined properties
32853294
if (hasOwn.call(params, key) && params[key] !== undefined) {
32863295

3287-
// Output a parameter for each value of this key (but usually just one)
3296+
// Output a parameter for each value of this key
3297+
// (but usually just one)
32883298
arrValue = [].concat(params[key]);
32893299
for (i = 0; i < arrValue.length; i++) {
32903300
querystring += encodeURIComponent(key);
@@ -3705,7 +3715,8 @@
37053715
if (config.altertitle && document$$1.title) {
37063716

37073717
// Show ✖ for good, ✔ for bad suite result in title
3708-
// use escape sequences in case file gets loaded with non-utf-8-charset
3718+
// use escape sequences in case file gets loaded with non-utf-8
3719+
// charset
37093720
document$$1.title = [stats.failedTests ? "\u2716" : "\u2714", document$$1.title.replace(/^[\u2714\u2716] /i, "")].join(" ");
37103721
}
37113722

@@ -3743,7 +3754,7 @@
37433754
if (running) {
37443755
bad = QUnit.config.reorder && details.previousFailure;
37453756

3746-
running.innerHTML = (bad ? "Rerunning previously failed test: <br />" : "Running: <br />") + getNameHtml(details.name, details.module);
3757+
running.innerHTML = [bad ? "Rerunning previously failed test: <br />" : "Running: <br />", getNameHtml(details.name, details.module)].join("");
37473758
}
37483759
});
37493760

@@ -4874,7 +4885,9 @@
48744885
line = text.substring(lineStart, lineEnd + 1);
48754886
lineStart = lineEnd + 1;
48764887

4877-
if (lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : lineHash[line] !== undefined) {
4888+
var lineHashExists = lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : lineHash[line] !== undefined;
4889+
4890+
if (lineHashExists) {
48784891
chars += String.fromCharCode(lineHash[line]);
48794892
} else {
48804893
chars += String.fromCharCode(lineArrayLength);

package-lock.json

Lines changed: 71 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)