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