Content-Length: 318677 | pFad | http://github.com/NativeScript/napi-android/commit/14922135984272a7d39c51083f5aa94c8cf46d4f

45 fix some failing tests · NativeScript/napi-android@1492213 · GitHub
Skip to content

Commit 1492213

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

File tree

1 file changed

+2
-2
lines changed
  • test-app/app/src/main/assets/app/shared/Require

1 file changed

+2
-2
lines changed

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

+2-2
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/napi-android/commit/14922135984272a7d39c51083f5aa94c8cf46d4f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy