Skip to content

Commit 1492213

Browse files
committed
fix some failing tests
1 parent 5508812 commit 1492213

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test-app/app/src/main/assets/app/shared/Require

test-app/app/src/main/assets/app/shared/Require/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ describe("TNS require", function () {
238238

239239
it("should handle JSON file errors", function () {
240240
require('./RequireJsonCorruptFile');
241-
expect(TNSGetOutput()).toMatch(/JSON Parse error|JSON Parse error: Unterminated string$|Unexpected token|Bad control character/);
241+
expect(TNSGetOutput()).toMatch(/unexpected control character in string|JSON Parse error|JSON Parse error: Unterminated string$|Unexpected token|Bad control character/);
242242
});
243243

244244
it("shouldn't load invalid JSON file", function () {
245245
require("./RequireJsonCorruptFile1");
246-
expect(TNSGetOutput()).toMatch(/unexpected data at the end|JSON Parse error|Unexpected token s in JSON at position 1$|JSON Parse error: Unable to parse JSON string$|No identifiers allowed directly after numeric literal$|Unexpected non-whitespace character/);
246+
expect(TNSGetOutput()).toMatch(/invalid number literal|unexpected data at the end|JSON Parse error|Unexpected token s in JSON at position 1$|JSON Parse error: Unable to parse JSON string$|No identifiers allowed directly after numeric literal$|Unexpected non-whitespace character/);
247247
});
248248

249249
it("when using global in a module global should be defined", function () {

0 commit comments

Comments
 (0)