diff --git a/test/queryGuardHttp.test.ts b/test/queryGuardHttp.test.ts index 6642b68..0a73136 100644 --- a/test/queryGuardHttp.test.ts +++ b/test/queryGuardHttp.test.ts @@ -45,6 +45,7 @@ beforeAll(async () => { { slug: 'media', fields: [], upload: { staticDir: path.join(os.tmpdir(), 'ipal-test-media') } }, ], db: testDatabase('query_guard'), + editor: lexicalEditor(), // the server's own read on behalf of a request without an account (the cookie scanner's scheduled crawl does this) endpoints: [ { @@ -57,7 +58,6 @@ beforeAll(async () => { path: '/own-read', }, ], - editor: lexicalEditor(), plugins: [iapl({ access: { authCollection: 'users' }, i18n: { defaultLocale: 'pl', locales: [{ code: 'pl', label: 'Polski' }] }, twoFactor: false })], secret: 'integration-test-secret-0123456789', telemetry: false,