Skip to content

Commit

Permalink
test: fix some tests that peggy broke
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Jul 6, 2021
1 parent eecf12a commit 36c761b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/processor/test/composition.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("/processor.js", () => {
".a { composes: b from nowhere.css; }"
);

await expect(result).rejects.toThrow(`SyntaxError: Expected global or source but "n" found.`);
await expect(result).rejects.toThrow(`SyntaxError: Expected global, source, or whitespace but "n" found.`);
});

it("should fail if a composition references a non-existant class", async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/processor/test/values.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("/processor.js", () => {
await expect(processor.string(
"./invalid/value.css",
"@value foo, bar from nowhere.css"
)).rejects.toThrow(`SyntaxError: Expected source but "n" found.`);
)).rejects.toThrow(`SyntaxError: Expected source or whitespace but "n" found.`);
});

it("should fail if a value imports a non-existant reference", async () => {
Expand Down

0 comments on commit 36c761b

Please sign in to comment.