feat: improve typescript comments (#1467)

This commit is contained in:
Thomas Ghysels
2022-11-29 11:10:30 -04:00
committed by GitHub
parent a90a1a9e19
commit 5bd86571ca
10 changed files with 462 additions and 106 deletions

View File

@@ -16,13 +16,13 @@ describe('sanitizeFields', () => {
sanitizeFields(fields, []);
}).toThrow(MissingFieldType);
});
it("should throw on invalid field name", () => {
it('should throw on invalid field name', () => {
const fields: Field[] = [
{
label: "some.collection",
name: "some.collection",
type: "text",
}
label: 'some.collection',
name: 'some.collection',
type: 'text',
},
];
expect(() => {
sanitizeFields(fields, []);