diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 03:10:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 03:10:25 +0300 |
commit | b2e2c43b3c5aebf47d7f6114b172551e4fa97e58 (patch) | |
tree | 5358eb8e4b7fa85f87f13524ab520b460a62ce24 /spec/frontend/project_find_file_spec.js | |
parent | 5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/project_find_file_spec.js')
-rw-r--r-- | spec/frontend/project_find_file_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/project_find_file_spec.js b/spec/frontend/project_find_file_spec.js index 104233eb6d5..1af97dbca0a 100644 --- a/spec/frontend/project_find_file_spec.js +++ b/spec/frontend/project_find_file_spec.js @@ -7,7 +7,7 @@ import axios from '~/lib/utils/axios_utils'; jest.mock('~/lib/dompurify', () => ({ addHook: jest.fn(), - sanitize: jest.fn(val => val), + sanitize: jest.fn((val) => val), })); const BLOB_URL_TEMPLATE = `${TEST_HOST}/namespace/project/blob/master`; @@ -39,7 +39,7 @@ describe('ProjectFindFile', () => { element .find('.tree-table tr') .toArray() - .map(el => ({ + .map((el) => ({ text: el.textContent, href: el.querySelector('a').href, })); @@ -53,14 +53,14 @@ describe('ProjectFindFile', () => { { path: 'folde?rC/fil#F.txt', escaped: 'folde%3FrC/fil%23F.txt' }, ]; - beforeEach(done => { + beforeEach((done) => { // Create a mock adapter for stubbing axios API requests mock = new MockAdapter(axios); element = $(TEMPLATE); mock.onGet(FILE_FIND_URL).replyOnce( 200, - files.map(x => x.path), + files.map((x) => x.path), ); getProjectFindFileInstance(); // This triggers a load / axios call + subsequent render in the constructor |