Compare commits
1 Commits
c3e8d77f0e
..
0.1.13
| Author | SHA1 | Date | |
|---|---|---|---|
| 30070f7f9c |
@@ -13,10 +13,6 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
json-file: renovate.json
|
||||
- name: Validate oxfmt config
|
||||
uses: ./
|
||||
with:
|
||||
json-file: .oxfmtrc.json
|
||||
|
||||
test:
|
||||
name: Test
|
||||
|
||||
@@ -58,10 +58,10 @@ describe("validateJson()", () => {
|
||||
{
|
||||
ok: true,
|
||||
text: async () =>
|
||||
JSON.stringify({
|
||||
({
|
||||
despiteThisBeingValidJson:
|
||||
"toString() breaks it, making it invalid",
|
||||
}),
|
||||
}).toString(),
|
||||
},
|
||||
);
|
||||
|
||||
@@ -69,7 +69,7 @@ describe("validateJson()", () => {
|
||||
$schema: "https://json-schema.org/draft-07/schema",
|
||||
});
|
||||
await expect(validateJson(jsonFile)).rejects.toThrow(
|
||||
'strict mode: unknown keyword: "despiteThisBeingValidJson"',
|
||||
'"[object Object]" is not valid JSON',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user