Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
node_modules/playwright/lib/matchers/toHaveURL.js
generated
vendored
11
node_modules/playwright/lib/matchers/toHaveURL.js
generated
vendored
@@ -22,9 +22,6 @@ __export(toHaveURL_exports, {
|
||||
});
|
||||
module.exports = __toCommonJS(toHaveURL_exports);
|
||||
var import_utils = require("playwright-core/lib/utils");
|
||||
var import_expect = require("./expect");
|
||||
var import_matcherHint = require("./matcherHint");
|
||||
var import_expectBundle = require("../common/expectBundle");
|
||||
async function toHaveURLWithPredicate(page, expected, options) {
|
||||
const matcherName = "toHaveURL";
|
||||
const timeout = options?.timeout ?? this.timeout;
|
||||
@@ -75,18 +72,20 @@ function toHaveURLMessage(state, matcherName, expected, received, pass, timedOut
|
||||
let printedDiff;
|
||||
if (typeof expected === "function") {
|
||||
printedExpected = `Expected: predicate to ${!state.isNot ? "succeed" : "fail"}`;
|
||||
printedReceived = `Received: ${(0, import_expectBundle.printReceived)(receivedString)}`;
|
||||
printedReceived = `Received: ${state.utils.printReceived(receivedString)}`;
|
||||
} else {
|
||||
if (pass) {
|
||||
printedExpected = `Expected pattern: not ${state.utils.printExpected(expected)}`;
|
||||
const formattedReceived = (0, import_expect.printReceivedStringContainExpectedResult)(receivedString, null);
|
||||
const formattedReceived = (0, import_utils.printReceivedStringContainExpectedResult)(state.utils, receivedString, null);
|
||||
printedReceived = `Received string: ${formattedReceived}`;
|
||||
} else {
|
||||
const labelExpected = `Expected ${typeof expected === "string" ? "string" : "pattern"}`;
|
||||
printedDiff = state.utils.printDiffOrStringify(expected, receivedString, labelExpected, "Received string", false);
|
||||
}
|
||||
}
|
||||
return (0, import_matcherHint.formatMatcherMessage)(state, {
|
||||
return (0, import_utils.formatMatcherMessage)(state.utils, {
|
||||
isNot: state.isNot,
|
||||
promise: state.promise,
|
||||
matcherName,
|
||||
expectation: "expected",
|
||||
timeout,
|
||||
|
||||
Reference in New Issue
Block a user