Skip to content

Commit

Permalink
lint: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanzalu committed Aug 1, 2024
1 parent b9c2315 commit 7ed8e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/BatchDownloadActions.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script>
import { uniqueId } from 'lodash'
import {queue} from "vue3-toastify";
export default {
name: 'BatchDownloadActions',
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/specs/components/BatchDownloadActions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('BatchDownloadActions.vue', () => {

describe('relaunchTask method', () => {
it('should emit an error when the relaunch fails', async () => {
const query = { query: ';ERRORED;'}
const query = { query: ';ERRORED;' }
const props = mockRunBatchDownload('id', 'erroredTask', { projects, query })
const wrapper = mount(BatchDownloadActions, { props, global: { plugins } })
expect(wrapper.emitted().relaunchFailed).toBeUndefined()
Expand All @@ -49,7 +49,7 @@ describe('BatchDownloadActions.vue', () => {
})

it('should emit a success when the relaunch', async () => {
const query = { query: '{ }'}
const query = { query: '{ }' }
const props = mockRunBatchDownload('id', 'task', { projects, query })
const wrapper = mount(BatchDownloadActions, { props, global: { plugins } })
expect(wrapper.emitted().relaunched).toBeUndefined()
Expand All @@ -58,7 +58,7 @@ describe('BatchDownloadActions.vue', () => {
})

it('should call the API with a parsed query', async () => {
const query = { query: '{ "foo": "bar" }'}
const query = { query: '{ "foo": "bar" }' }
const props = mockRunBatchDownload('id', 'task', { projects, query })
const wrapper = mount(BatchDownloadActions, { props, global: { plugins } })
await wrapper.vm.relaunchTask()
Expand Down

0 comments on commit 7ed8e2f

Please sign in to comment.