Clean up tests and tslint

This commit is contained in:
Jan Tuomi
2018-06-21 09:18:25 +03:00
parent 264194d0c2
commit befc44695d
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ test("Header contains text \"Aalto-yliopiston sähköinsinöörikilta!\"", async
* Test if the header contains the text. * Test if the header contains the text.
*/ */
const header = Selector("h1"); const header = Selector("h1");
const text = await header.textContent; await t.expect(header.textContent)
await t.expect(text).contains("Aalto-yliopiston sähköinsinöörikilta!"); .contains("Aalto-yliopiston sähköinsinöörikilta!");
}); });
fixture`Increment button`.page("http://localhost:3000"); fixture`Increment button`.page("http://localhost:3000");
+4 -2
View File
@@ -7,7 +7,8 @@
], ],
"indent": [ "indent": [
true, true,
"spaces" "spaces",
2
], ],
"no-duplicate-variable": true, "no-duplicate-variable": true,
"no-eval": true, "no-eval": true,
@@ -51,7 +52,8 @@
], ],
"indent": [ "indent": [
true, true,
"spaces" "spaces",
2
], ],
"no-eval": true, "no-eval": true,
"no-internal-module": true, "no-internal-module": true,