From 7af3fd78023fb58d503b3f7d4d65a19dd6114bb9 Mon Sep 17 00:00:00 2001 From: Danyal Aytekin Date: Mon, 18 Mar 2024 18:49:26 +0000 Subject: [PATCH] Reformat test file to placate linter about line length `100` (#323) --- test/integration/route/task/index.js | 32 ++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/test/integration/route/task/index.js b/test/integration/route/task/index.js index 29e661fd..ec87dd9e 100644 --- a/test/integration/route/task/index.js +++ b/test/integration/route/task/index.js @@ -30,11 +30,17 @@ describe('GET /', 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() { @@ -42,16 +48,30 @@ describe('GET /', function() { }); 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() {