Skip to content

Commit

Permalink
Undo core-xml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymeng committed Jan 10, 2024
1 parent f1730b5 commit db722d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/core/core-xml/test/xml.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ describe("XML serializer", function () {
assert.fail("Expected error");
} catch (error: any) {
assert.ok(
error.message.indexOf("This page contains the following errors") !== -1 || // Chrome
error.message.indexOf("Document is empty") !== -1 || // Chrome
(error.message.startsWith("XML Parsing Error: syntax error") &&
error.message.includes("undefined")), // Firefox
error.message.indexOf("undefined") !== -1), // Firefox
`error.message ("${error.message}") should have contained "Document is empty" or "undefined"`,
);
}
Expand All @@ -28,9 +28,9 @@ describe("XML serializer", function () {
assert.fail("Expected error");
} catch (error: any) {
assert.ok(
error.message.indexOf("This page contains the following errors") !== -1 || // Chrome
error.message.indexOf("Document is empty") !== -1 || // Chrome
(error.message.startsWith("XML Parsing Error: syntax error") &&
error.message.includes("null")), // Firefox
error.message.indexOf("null") !== -1), // Firefox
`error.message ("${error.message}") should have contained "Document is empty" or "null"`,
);
}
Expand Down

0 comments on commit db722d1

Please sign in to comment.