mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-05 01:15:41 -04:00
build(deps): bump playwright from 1.49.1 to 1.50.1
This commit is contained in:
7
node_modules/playwright/lib/matchers/toBeTruthy.js
generated
vendored
7
node_modules/playwright/lib/matchers/toBeTruthy.js
generated
vendored
@@ -22,7 +22,7 @@ var _matcherHint = require("./matcherHint");
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
async function toBeTruthy(matcherName, receiver, receiverType, expected, unexpected, arg, query, options = {}) {
|
||||
async function toBeTruthy(matcherName, receiver, receiverType, expected, arg, query, options = {}) {
|
||||
var _options$timeout;
|
||||
(0, _util.expectTypes)(receiver, [receiverType], matcherName);
|
||||
const matcherOptions = {
|
||||
@@ -45,7 +45,6 @@ async function toBeTruthy(matcherName, receiver, receiverType, expected, unexpec
|
||||
};
|
||||
}
|
||||
const notFound = received === _matcherHint.kNoElementsFoundError ? received : undefined;
|
||||
const actual = pass ? expected : unexpected;
|
||||
let printedReceived;
|
||||
let printedExpected;
|
||||
if (pass) {
|
||||
@@ -53,7 +52,7 @@ async function toBeTruthy(matcherName, receiver, receiverType, expected, unexpec
|
||||
printedReceived = `Received: ${notFound ? _matcherHint.kNoElementsFoundError : expected}`;
|
||||
} else {
|
||||
printedExpected = `Expected: ${expected}`;
|
||||
printedReceived = `Received: ${notFound ? _matcherHint.kNoElementsFoundError : unexpected}`;
|
||||
printedReceived = `Received: ${notFound ? _matcherHint.kNoElementsFoundError : received}`;
|
||||
}
|
||||
const message = () => {
|
||||
const header = (0, _matcherHint.matcherHint)(this, receiver, matcherName, 'locator', arg, matcherOptions, timedOut ? timeout : undefined);
|
||||
@@ -63,7 +62,7 @@ async function toBeTruthy(matcherName, receiver, receiverType, expected, unexpec
|
||||
return {
|
||||
message,
|
||||
pass,
|
||||
actual,
|
||||
actual: received,
|
||||
name: matcherName,
|
||||
expected,
|
||||
log,
|
||||
|
||||
Reference in New Issue
Block a user