Commit a3f59b1f authored by Vitaly Slobodin's avatar Vitaly Slobodin

Disable several eslint complains

parent 361cf377
// eslint-disable-next-line jest/no-export
export default class ClassSpecHelper { export default class ClassSpecHelper {
static itShouldBeAStaticMethod(base, method) { static itShouldBeAStaticMethod(base, method) {
return it('should be a static method', () => { return it('should be a static method', () => {
......
...@@ -11,6 +11,7 @@ describe('axios_utils', () => { ...@@ -11,6 +11,7 @@ describe('axios_utils', () => {
mock = new AxiosMockAdapter(axios); mock = new AxiosMockAdapter(axios);
mock.onAny('/ok').reply(200); mock.onAny('/ok').reply(200);
mock.onAny('/err').reply(500); mock.onAny('/err').reply(500);
// eslint-disable-next-line jest/no-standalone-expect
expect(axios.countActiveRequests()).toBe(0); expect(axios.countActiveRequests()).toBe(0);
}); });
......
...@@ -20,7 +20,6 @@ describe('Release detail mutations', () => { ...@@ -20,7 +20,6 @@ describe('Release detail mutations', () => {
release = convertObjectPropsToCamelCase(originalRelease); release = convertObjectPropsToCamelCase(originalRelease);
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.REQUEST_RELEASE, () => { describe(types.REQUEST_RELEASE, () => {
it('set state.isFetchingRelease to true', () => { it('set state.isFetchingRelease to true', () => {
mutations[types.REQUEST_RELEASE](state); mutations[types.REQUEST_RELEASE](state);
...@@ -29,7 +28,6 @@ describe('Release detail mutations', () => { ...@@ -29,7 +28,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.RECEIVE_RELEASE_SUCCESS, () => { describe(types.RECEIVE_RELEASE_SUCCESS, () => {
it('handles a successful response from the server', () => { it('handles a successful response from the server', () => {
mutations[types.RECEIVE_RELEASE_SUCCESS](state, release); mutations[types.RECEIVE_RELEASE_SUCCESS](state, release);
...@@ -44,7 +42,6 @@ describe('Release detail mutations', () => { ...@@ -44,7 +42,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.RECEIVE_RELEASE_ERROR, () => { describe(types.RECEIVE_RELEASE_ERROR, () => {
it('handles an unsuccessful response from the server', () => { it('handles an unsuccessful response from the server', () => {
const error = { message: 'An error occurred!' }; const error = { message: 'An error occurred!' };
...@@ -58,7 +55,6 @@ describe('Release detail mutations', () => { ...@@ -58,7 +55,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.UPDATE_RELEASE_TITLE, () => { describe(types.UPDATE_RELEASE_TITLE, () => {
it("updates the release's title", () => { it("updates the release's title", () => {
state.release = release; state.release = release;
...@@ -69,7 +65,6 @@ describe('Release detail mutations', () => { ...@@ -69,7 +65,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.UPDATE_RELEASE_NOTES, () => { describe(types.UPDATE_RELEASE_NOTES, () => {
it("updates the release's notes", () => { it("updates the release's notes", () => {
state.release = release; state.release = release;
...@@ -80,7 +75,6 @@ describe('Release detail mutations', () => { ...@@ -80,7 +75,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.REQUEST_UPDATE_RELEASE, () => { describe(types.REQUEST_UPDATE_RELEASE, () => {
it('set state.isUpdatingRelease to true', () => { it('set state.isUpdatingRelease to true', () => {
mutations[types.REQUEST_UPDATE_RELEASE](state); mutations[types.REQUEST_UPDATE_RELEASE](state);
...@@ -89,7 +83,6 @@ describe('Release detail mutations', () => { ...@@ -89,7 +83,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.RECEIVE_UPDATE_RELEASE_SUCCESS, () => { describe(types.RECEIVE_UPDATE_RELEASE_SUCCESS, () => {
it('handles a successful response from the server', () => { it('handles a successful response from the server', () => {
mutations[types.RECEIVE_UPDATE_RELEASE_SUCCESS](state, release); mutations[types.RECEIVE_UPDATE_RELEASE_SUCCESS](state, release);
...@@ -100,7 +93,6 @@ describe('Release detail mutations', () => { ...@@ -100,7 +93,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.RECEIVE_UPDATE_RELEASE_ERROR, () => { describe(types.RECEIVE_UPDATE_RELEASE_ERROR, () => {
it('handles an unsuccessful response from the server', () => { it('handles an unsuccessful response from the server', () => {
const error = { message: 'An error occurred!' }; const error = { message: 'An error occurred!' };
...@@ -112,7 +104,6 @@ describe('Release detail mutations', () => { ...@@ -112,7 +104,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.ADD_EMPTY_ASSET_LINK, () => { describe(types.ADD_EMPTY_ASSET_LINK, () => {
it('adds a new, empty link object to the release', () => { it('adds a new, empty link object to the release', () => {
state.release = release; state.release = release;
...@@ -132,7 +123,6 @@ describe('Release detail mutations', () => { ...@@ -132,7 +123,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.UPDATE_ASSET_LINK_URL, () => { describe(types.UPDATE_ASSET_LINK_URL, () => {
it('updates an asset link with a new URL', () => { it('updates an asset link with a new URL', () => {
state.release = release; state.release = release;
...@@ -148,7 +138,6 @@ describe('Release detail mutations', () => { ...@@ -148,7 +138,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.UPDATE_ASSET_LINK_NAME, () => { describe(types.UPDATE_ASSET_LINK_NAME, () => {
it('updates an asset link with a new name', () => { it('updates an asset link with a new name', () => {
state.release = release; state.release = release;
...@@ -164,7 +153,6 @@ describe('Release detail mutations', () => { ...@@ -164,7 +153,6 @@ describe('Release detail mutations', () => {
}); });
}); });
// eslint-disable-next-line jest/valid-describe
describe(types.REMOVE_ASSET_LINK, () => { describe(types.REMOVE_ASSET_LINK, () => {
it('removes an asset link from the release', () => { it('removes an asset link from the release', () => {
state.release = release; state.release = release;
......
...@@ -56,13 +56,8 @@ describe('date time picker lib', () => { ...@@ -56,13 +56,8 @@ describe('date time picker lib', () => {
describe('stringToISODate', () => { describe('stringToISODate', () => {
['', 'null', undefined, 'abc'].forEach(input => { ['', 'null', undefined, 'abc'].forEach(input => {
it(`throws error for invalid input like ${input}`, done => { it(`throws error for invalid input like ${input}`, () => {
try { expect(() => dateTimePickerLib.stringToISODate(input)).toThrow();
dateTimePickerLib.stringToISODate(input);
} catch (e) {
expect(e).toBeDefined();
done();
}
}); });
}); });
[ [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment