tests: check that texts do not contain FIXME or TODO
This commit is contained in:
parent
09adc1c4a2
commit
8220e86423
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Reference in a new issue