diff options
author | Phil Hughes <me@iamphill.com> | 2018-02-01 12:14:53 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-02-01 12:14:53 +0300 |
commit | 4377b4795fedcb5145d76fab09ccd468ce3a2138 (patch) | |
tree | 2d23d392616747a5996c11a2a689bc49e6cec9b6 /spec/javascripts/lib/utils/common_utils_spec.js | |
parent | 988747df49d9441f539c51efd6f808f77173c3e0 (diff) |
remove useless ajaxPost method
Diffstat (limited to 'spec/javascripts/lib/utils/common_utils_spec.js')
-rw-r--r-- | spec/javascripts/lib/utils/common_utils_spec.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/javascripts/lib/utils/common_utils_spec.js b/spec/javascripts/lib/utils/common_utils_spec.js index 864ee4995ea..80430011aed 100644 --- a/spec/javascripts/lib/utils/common_utils_spec.js +++ b/spec/javascripts/lib/utils/common_utils_spec.js @@ -459,19 +459,6 @@ describe('common_utils', () => { }); }); - describe('ajaxPost', () => { - it('should perform `$.ajax` call and do `POST` request', () => { - const requestURL = '/some/random/api'; - const data = { keyname: 'value' }; - const ajaxSpy = spyOn(axios, 'post').and.callFake(() => {}); - - commonUtils.ajaxPost(requestURL, data); - - expect(ajaxSpy.calls.allArgs()[0][0]).toEqual(requestURL); - expect(ajaxSpy.calls.allArgs()[0][1]).toEqual(data); - }); - }); - describe('spriteIcon', () => { let beforeGon; |