diff --git a/spec/javascripts/api_spec.js b/spec/frontend/api_spec.js similarity index 99% rename from spec/javascripts/api_spec.js rename to spec/frontend/api_spec.js index 805bb10bda6..13615be1f27 100644 --- a/spec/javascripts/api_spec.js +++ b/spec/frontend/api_spec.js @@ -459,7 +459,7 @@ describe('Api', () => { dummyProjectPath, )}/repository/branches`; - spyOn(axios, 'post').and.callThrough(); + jest.spyOn(axios, 'post'); mock.onPost(expectedUrl).replyOnce(200, { name: branch,