tests: check that texts do not contain FIXME or TODO

This commit is contained in:
Vašek Šraier 2020-10-17 18:13:54 +02:00
parent 09adc1c4a2
commit 8220e86423

View file

@ -30,6 +30,10 @@ describe('tasks.json validation', () => {
expect(["open-data", "text", "label"]).toContain(t.type) expect(["open-data", "text", "label"]).toContain(t.type)
if (t.type == "text") { if (t.type == "text") {
expect(t.htmlContent?.trim()).toBeTruthy() expect(t.htmlContent?.trim()).toBeTruthy()
if (!t.hidden) {
expect(t.htmlContent).not.toContain("FIXME")
expect(t.htmlContent).not.toContain("TODO")
}
} else if (t.type == "open-data") { } else if (t.type == "open-data") {
expect(t.taskReference).toBeTruthy() expect(t.taskReference).toBeTruthy()
expect(g.parseTaskId(t.taskReference)).toBeTruthy() expect(g.parseTaskId(t.taskReference)).toBeTruthy()