Skip to content

Commit

Permalink
Reformat test file to placate linter about line length 100 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalaytekin authored Mar 18, 2024
1 parent 2111871 commit 7af3fd7
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions test/integration/route/task/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,48 @@ describe('GET /<task-id>', function() {
});

it('should display an "Edit" button', function() {
assert.strictEqual(this.last.dom('[href="/abc000000000000000000001/edit"]').length, 1);
assert.strictEqual(
this.last.dom('[href="/abc000000000000000000001/edit"]').length,
1
);
});

it('should display a "Delete" button', function() {
assert.strictEqual(this.last.dom('[href="/abc000000000000000000001/delete"]').length, 1);
assert.strictEqual(
this.last.dom('[href="/abc000000000000000000001/delete"]').length,
1
);
});

it('should display a "Run" button', function() {
assert.strictEqual(this.last.dom('[href="/abc000000000000000000001/run"]').length, 1);
});

it('should display a "Download CSV" button for the latest result', function() {
assert.strictEqual(this.last.dom('[href="/abc000000000000000000001/def000000000000000000001.csv"]').length, 1);
assert.strictEqual(
1,
this.last.dom(
'[href="/abc000000000000000000001/def000000000000000000001.csv"]'
).length
);
});

it('should display a "Download JSON" button for the latest result', function() {
assert.strictEqual(this.last.dom('[href="/abc000000000000000000001/def000000000000000000001.json"]').length, 1);
assert.strictEqual(
1,
this.last.dom(
'[href="/abc000000000000000000001/def000000000000000000001.json"]'
).length
);
});

it('should display links to all results', function() {
assert.isDefined(this.last.dom('[href="/abc000000000000000000001/def000000000000000000001"]').eq(0));
assert.isDefined(this.last.dom('[href="/abc000000000000000000001/def000000000000000000003"]').eq(0));
assert.isDefined(
this.last.dom('[href="/abc000000000000000000001/def000000000000000000001"]').eq(0)
);
assert.isDefined(
this.last.dom('[href="/abc000000000000000000001/def000000000000000000003"]').eq(0)
);
});

it('should display errors', function() {
Expand Down

0 comments on commit 7af3fd7

Please sign in to comment.