diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-28 13:41:30 +0200 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-05-29 18:42:51 +0200 |
commit | 6e1a7902f43785bf82084f9eb9cc963d81e3b83e (patch) | |
tree | 4a7955c76d471a3102ade87e5359d60669a23440 /spec/javascripts/blob | |
parent | 5777057325d413f4616f0459c5d63581634f4e42 (diff) | |
download | gitlab-ce-6e1a7902f43785bf82084f9eb9cc963d81e3b83e.tar.gz |
fix last lints
Diffstat (limited to 'spec/javascripts/blob')
-rw-r--r-- | spec/javascripts/blob/notebook/index_spec.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/javascripts/blob/notebook/index_spec.js b/spec/javascripts/blob/notebook/index_spec.js index a143fc827d5..80c09a544d6 100644 --- a/spec/javascripts/blob/notebook/index_spec.js +++ b/spec/javascripts/blob/notebook/index_spec.js @@ -84,9 +84,14 @@ describe('iPython notebook renderer', () => { describe('error in JSON response', () => { let mock; - beforeEach((done) => { + beforeEach(done => { mock = new MockAdapter(axios); - mock.onGet('/test').reply(() => Promise.reject({ status: 200, data: '{ "cells": [{"cell_type": "markdown"} }' })); + mock + .onGet('/test') + .reply(() => + // eslint-disable-next-line prefer-promise-reject-errors + Promise.reject({ status: 200, data: '{ "cells": [{"cell_type": "markdown"} }' }), + ); renderNotebook(); |