Write basic tests for task editing

This commit is contained in:
Rowan Manning
2013-11-28 13:59:27 +00:00
parent 4ff53093f4
commit 52a923ace3
5 changed files with 133 additions and 11 deletions

View File

@@ -25,6 +25,10 @@ describe('GET /<task-id>/delete', function () {
assert.strictEqual(form.getAttribute('method'), 'post');
});
it('should display a link back to the task page', function () {
assert.greaterThan(this.last.dom.querySelectorAll('[href="/abc000000000000000000001"]').length, 0);
});
});
describe('POST /<task-id>/delete', function () {