Commit 3daa298d authored by Dennis Tang's avatar Dennis Tang

eslint fixes

parent af3dd043
<script>
import _ from 'underscore';
import { s__ } from '~/locale';
import { mapState, mapGetters, mapActions } from 'vuex';
......
......@@ -42,31 +42,28 @@ describe('GkeProjectIdDropdown', () => {
expect(vm.toggleText).toBe(LABELS.LOADING);
});
it('returns default toggle text', done => {
return vm.$nextTick().then(() => {
it('returns default toggle text', done =>
vm.$nextTick().then(() => {
vm.setItem(emptyProjectMock);
expect(vm.toggleText).toBe(LABELS.DEFAULT);
done();
});
});
}));
it('returns project name if project selected', done => {
return vm.$nextTick().then(() => {
it('returns project name if project selected', done =>
vm.$nextTick().then(() => {
expect(vm.toggleText).toBe(selectedProjectMock.name);
done();
});
});
}));
it('returns empty toggle text', done => {
return vm.$nextTick().then(() => {
it('returns empty toggle text', done =>
vm.$nextTick().then(() => {
vm.$store.commit(SET_PROJECTS, []);
vm.setItem(emptyProjectMock);
expect(vm.toggleText).toBe(LABELS.EMPTY);
done();
});
});
}));
});
describe('selectItem', () => {
......
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