diff --git a/test-app/tests/integration/helpers/file-queue-helper-test.gts b/test-app/tests/integration/helpers/file-queue-helper-test.gts index 55ac07df..583f0711 100644 --- a/test-app/tests/integration/helpers/file-queue-helper-test.gts +++ b/test-app/tests/integration/helpers/file-queue-helper-test.gts @@ -5,7 +5,7 @@ import { render, click, settled, waitFor } from '@ember/test-helpers'; import { DEFAULT_QUEUE, FileState } from 'ember-file-upload'; import type { UploadFile } from 'ember-file-upload'; import { selectFiles } from 'ember-file-upload/test-support'; -import { uploadHandler } from 'ember-file-upload'; +import { type FileQueueService, uploadHandler } from 'ember-file-upload'; import { later } from '@ember/runloop'; import fileQueue from 'ember-file-upload/helpers/file-queue'; import { on } from '@ember/modifier'; @@ -20,6 +20,31 @@ module('Integration | Helper | file-queue', function (hooks) { setupRenderingTest(hooks); setupMirage(hooks); + test('service can be used before helper', async function (assert) { + const fileQueueService = this.owner.lookup( + 'service:file-queue', + ) as FileQueueService; + + await render( + , + ); + }); + test('filter is triggered when selecting files', async function (assert) { const filter = (file: File) => { assert.step(`filter: ${file.name}`);