Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Apr 23, 2021
1 parent 46428c9 commit 1dad60c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/tests/acceptance/search-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { selectSearch } from 'ember-power-select/test-support';
import sinon from 'sinon';
import Response from 'ember-cli-mirage/response';

import { COLLECTION_CACHE_DURATION } from 'nomad-ui/services/data-caches';

function getRequestCount(server, url) {
return server.pretender.handledRequests.filterBy('url', url).length;
}
Expand Down Expand Up @@ -47,7 +45,11 @@ module('Acceptance | search', function(hooks) {
await selectSearch(Layout.navbar.search.scope, 'q');

assert.ok(Layout.navbar.search.noOptionsShown);
assert.equal(server.pretender.handledRequests.filterBy('url', '/v1/search/fuzzy').length, 1, 'expect the feature detection query');
assert.equal(
server.pretender.handledRequests.filterBy('url', '/v1/search/fuzzy').length,
1,
'expect the feature detection query'
);
});

test('when fuzzy search is disabled on the server, the search control is hidden', async function(assert) {
Expand Down

0 comments on commit 1dad60c

Please sign in to comment.