Browse Source

test: Fix/clean up tests

Michael Bromley 5 years ago
parent
commit
63d08a2d64

+ 0 - 3
packages/core/e2e/asset-channel.e2e-spec.ts

@@ -30,9 +30,6 @@ import {
 } from './graphql/shared-definitions';
 import { assertThrowsWithMessage } from './utils/assert-throws-with-message';
 
-// FIXME
-testConfig.logger = new DefaultLogger({ level: LogLevel.Debug });
-
 const { server, adminClient } = createTestEnvironment(testConfig);
 const SECOND_CHANNEL_TOKEN = 'second_channel_token';
 let createdAssetId: string;

+ 4 - 2
packages/elasticsearch-plugin/e2e/elasticsearch-plugin.e2e-spec.ts

@@ -595,8 +595,10 @@ describe('Elasticsearch plugin', () => {
                     expect(assetId).toBeTruthy();
 
                     await adminClient.query<DeleteAsset.Mutation, DeleteAsset.Variables>(DELETE_ASSET, {
-                        id: assetId!,
-                        force: true,
+                        input: {
+                            assetId: assetId!,
+                            force: true,
+                        },
                     });
 
                     await awaitRunningJobs(adminClient);