diff --git a/apps/api/src/app/topics/e2e/remove-subscribers.e2e.ts b/apps/api/src/app/topics/e2e/remove-subscribers.e2e.ts index 9b6315aa0e8a..9f1b27ea3ac9 100644 --- a/apps/api/src/app/topics/e2e/remove-subscribers.e2e.ts +++ b/apps/api/src/app/topics/e2e/remove-subscribers.e2e.ts @@ -25,6 +25,7 @@ describe('Remove subscribers to topic - /topics/:topicKey/subscribers/removal (P subscriber = await subscriberService.createSubscriber(); secondSubscriber = await subscriberService.createSubscriber(); thirdSubscriber = await subscriberService.createSubscriber(); + novuClient = initNovuClassSdk(session); const response = await novuClient.topics.create({ key: topicKey, @@ -39,7 +40,6 @@ describe('Remove subscribers to topic - /topics/:topicKey/subscribers/removal (P removeSubscribersUrl = `${addSubscribersUrl}/removal`; // We prefill the data to work with - novuClient = initNovuClassSdk(session); await novuClient.topics.subscribers.assign( { subscribers: [subscriber.subscriberId, secondSubscriber.subscriberId, thirdSubscriber.subscriberId],