diff options
author | Avi Dessauer <avi.the.coder@gmail.com> | 2019-08-21 06:03:31 -0400 |
---|---|---|
committer | Alexey Kiryushin <alexey.a.kiryushin@gmail.com> | 2019-08-21 13:03:31 +0300 |
commit | af41ab40e1fc4888d1873a9ffe681ddafdfb4ee0 (patch) | |
tree | 219315a1ef02ae0d0f21889e7b88e08318b308a2 /javascript/tests | |
parent | 5295ac7f7f26c3a43f0fe9b9c826e876b29cf666 (diff) |
Delete trailing whitespace (#42)
Diffstat (limited to 'javascript/tests')
-rw-r--r-- | javascript/tests/acceptance/haskell-module-test.js | 8 | ||||
-rw-r--r-- | javascript/tests/acceptance/package-test.js | 8 | ||||
-rw-r--r-- | javascript/tests/acceptance/packages-test.js | 2 | ||||
-rw-r--r-- | javascript/tests/index.html | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/javascript/tests/acceptance/haskell-module-test.js b/javascript/tests/acceptance/haskell-module-test.js index 939c0dd..4eab15d 100644 --- a/javascript/tests/acceptance/haskell-module-test.js +++ b/javascript/tests/acceptance/haskell-module-test.js @@ -5,17 +5,17 @@ import { setupApplicationTest } from 'ember-qunit'; module('Acceptance | haskell-module', function(hooks) { setupApplicationTest(hooks); - + //Test data is in 'server/mocks/packages.js' test('visiting /package/test-package-0.1.0.0/show/app/Main.hs', async function(assert) { await visit('/package/test-package-0.1.0.0/show/app/Main.hs'); - + assert.equal(currentURL(), '/package/test-package-0.1.0.0/show/app/Main.hs'); - + const lines = Array.from(find('tbody').children).map((tr) => { return tr.children[1].innerText; }); - + assert.deepEqual(lines,["module Main where", "", "import Lib", diff --git a/javascript/tests/acceptance/package-test.js b/javascript/tests/acceptance/package-test.js index bdb1fef..09b73f2 100644 --- a/javascript/tests/acceptance/package-test.js +++ b/javascript/tests/acceptance/package-test.js @@ -5,16 +5,16 @@ import { setupApplicationTest } from 'ember-qunit'; module('Acceptance | package', function(hooks) { setupApplicationTest(hooks); - + //Test data is in 'server/mocks/packages.js' test('visiting /package/test-package-0.1.0.0', async function(assert) { await visit('/package/test-package-0.1.0.0'); assert.equal(currentURL(), '/package/test-package-0.1.0.0'); - + const moduleNames = Array.from(find('ul.modules').children).map((li) => { return [li.innerText,li.children[0].getAttribute('href')]; - }); - + }); + assert.deepEqual(moduleNames,[["app/Main.hs","/package/test-package-0.1.0.0/show/app/Main.hs"], ["src/Lib.hs","/package/test-package-0.1.0.0/show/src/Lib.hs"], ["src/Types.hs","/package/test-package-0.1.0.0/show/src/Types.hs"], diff --git a/javascript/tests/acceptance/packages-test.js b/javascript/tests/acceptance/packages-test.js index 4c970b1..106e16a 100644 --- a/javascript/tests/acceptance/packages-test.js +++ b/javascript/tests/acceptance/packages-test.js @@ -4,7 +4,7 @@ import { setupApplicationTest } from 'ember-qunit'; module('Acceptance | packages', function(hooks) { setupApplicationTest(hooks); - + //Test data is in file 'server/mocks/packages.js' test('visiting /', async function(assert) { await visit('/'); diff --git a/javascript/tests/index.html b/javascript/tests/index.html index 19f55cc..06bfc02 100644 --- a/javascript/tests/index.html +++ b/javascript/tests/index.html @@ -25,7 +25,7 @@ <script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/test-support.js"></script> <script src="{{rootURL}}assets/haskell-code-explorer.js"></script> - <script src="{{rootURL}}assets/tests.js"></script> + <script src="{{rootURL}}assets/tests.js"></script> {{content-for "body-footer"}} {{content-for "test-body-footer"}} |