diff --git a/tests/testcafe/index.test.ts b/tests/testcafe/index.test.ts index 5432f5c..121d049 100644 --- a/tests/testcafe/index.test.ts +++ b/tests/testcafe/index.test.ts @@ -20,8 +20,8 @@ test("Header contains text \"Aalto-yliopiston sähköinsinöörikilta!\"", async * Test if the header contains the text. */ const header = Selector("h1"); - const text = await header.textContent; - await t.expect(text).contains("Aalto-yliopiston sähköinsinöörikilta!"); + await t.expect(header.textContent) + .contains("Aalto-yliopiston sähköinsinöörikilta!"); }); fixture`Increment button`.page("http://localhost:3000"); diff --git a/tslint.json b/tslint.json index 1a58f91..b02a2c8 100644 --- a/tslint.json +++ b/tslint.json @@ -7,7 +7,8 @@ ], "indent": [ true, - "spaces" + "spaces", + 2 ], "no-duplicate-variable": true, "no-eval": true, @@ -51,7 +52,8 @@ ], "indent": [ true, - "spaces" + "spaces", + 2 ], "no-eval": true, "no-internal-module": true,