diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-31 12:27:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-31 12:27:30 +0300 |
commit | f165bda4ae2a92528e6f4da25825c1e441094c54 (patch) | |
tree | 3c68c58a56cdc390dc75e83a786200cf0e3fa662 /spec/javascripts/merge_request_tabs_spec.js | |
parent | 58eb3c55c9d15bd604b926ffeae9401f0b70c53c (diff) |
fixed failing specs
Diffstat (limited to 'spec/javascripts/merge_request_tabs_spec.js')
-rw-r--r-- | spec/javascripts/merge_request_tabs_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/merge_request_tabs_spec.js b/spec/javascripts/merge_request_tabs_spec.js index 116c4e8f0e4..fda24db98b4 100644 --- a/spec/javascripts/merge_request_tabs_spec.js +++ b/spec/javascripts/merge_request_tabs_spec.js @@ -1,5 +1,5 @@ /* eslint-disable no-var, comma-dangle, object-shorthand */ -import MockAdaptor from 'axios-mock-adapter'; +import MockAdapter from 'axios-mock-adapter'; import axios from '~/lib/utils/axios_utils'; import * as urlUtils from '~/lib/utils/url_utility'; import MergeRequestTabs from '~/merge_request_tabs'; @@ -218,7 +218,7 @@ import 'vendor/jquery.scrollTo'; let mock; beforeEach(function () { - mock = new MockAdaptor(axios); + mock = new MockAdapter(axios); mock.onGet(/(.*)\/diffs\.json/).reply(200, { data: { html: '' }, }); @@ -344,7 +344,7 @@ import 'vendor/jquery.scrollTo'; .attr('href') .replace('#', ''); - mock = new MockAdaptor(axios); + mock = new MockAdapter(axios); mock.onGet(/(.*)\/diffs\.json/).reply(200, diffsResponse); }); @@ -410,7 +410,7 @@ import 'vendor/jquery.scrollTo'; .attr('href') .replace('#', ''); - mock = new MockAdaptor(axios); + mock = new MockAdapter(axios); mock.onGet(/(.*)\/diffs\.json/).reply(200, diffsResponse); }); |