mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 10:43:30 +00:00
test: clarify source map and worker diagnostics
This commit is contained in:
1 parent
5cafea5ebe
commit
110932cd5e
4 files changed
+13
-10
No files matched your search
@@ -63,8 +63,7 @@ it("uses the same conservative section classification for URL-plus-map and malfo
|
||||
expect(malformed).toThrow(
|
||||
expect.objectContaining({
|
||||
reason: "format",
|
||||
message:
|
||||
"External source-map section URL must be a string. Section path: [0].",
|
||||
message: expect.stringMatching(/section URL.*must be a string.*\[0\]/iu),
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -82,7 +81,7 @@ it("rejects a present non-array sections member through the shared section-list
|
||||
expect(malformed).toThrow(
|
||||
expect.objectContaining({
|
||||
reason: "format",
|
||||
message: "Indexed source-map sections must be an array.",
|
||||
message: expect.stringMatching(/sections.*must be an array/iu),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user