From e8f392eceaa7a52e41920fd57127f21cfced2157 Mon Sep 17 00:00:00 2001 From: Aleksandar Stojanovic Date: Tue, 12 Dec 2023 17:23:27 +0100 Subject: [PATCH] Update package-lock (#274) * Update package-lock * Minor version bump * Fixed tests --------- Co-authored-by: Valentin Yanakiev --- service/package-lock.json | 4 ++-- service/package.json | 2 +- .../alkemio.client.adapter.spec.ts | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/service/package-lock.json b/service/package-lock.json index 42280b6b..e34cda0d 100644 --- a/service/package-lock.json +++ b/service/package-lock.json @@ -1,12 +1,12 @@ { "name": "alkemio-notifications", - "version": "0.14.4", + "version": "0.15.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "alkemio-notifications", - "version": "0.14.4", + "version": "0.15.1", "license": "EUPL-1.2", "dependencies": { "@alkemio/client-lib": "^0.25.0", diff --git a/service/package.json b/service/package.json index a6170093..4720102f 100644 --- a/service/package.json +++ b/service/package.json @@ -1,6 +1,6 @@ { "name": "alkemio-notifications", - "version": "0.15.0", + "version": "0.15.1", "description": "Alkemio notifications service", "author": "Alkemio Foundation", "private": false, diff --git a/service/src/services/application/alkemio-client-adapter/alkemio.client.adapter.spec.ts b/service/src/services/application/alkemio-client-adapter/alkemio.client.adapter.spec.ts index 23e97b4b..1218958d 100644 --- a/service/src/services/application/alkemio-client-adapter/alkemio.client.adapter.spec.ts +++ b/service/src/services/application/alkemio-client-adapter/alkemio.client.adapter.spec.ts @@ -1,4 +1,4 @@ -import { AlkemioClient } from '@alkemio/client-lib'; +import { AlkemioClient, PlatformFeatureFlagName } from '@alkemio/client-lib'; import { Test } from '@nestjs/testing'; import { AlkemioClientAdapterProvider } from './alkemio.client.adapter.module'; import * as challengeAdminsData from '@test/data/challenge.admins.json'; @@ -53,19 +53,19 @@ describe('AlkemioAdapter', () => { it('Should return true', async () => { jest.spyOn(alkemioClient, 'featureFlags').mockResolvedValue([ { - name: 'ssi', + name: PlatformFeatureFlagName.Ssi, enabled: false, }, { - name: 'communications', + name: PlatformFeatureFlagName.Communications, enabled: true, }, { - name: 'subscriptions', + name: PlatformFeatureFlagName.Subscriptions, enabled: false, }, { - name: 'notifications', + name: PlatformFeatureFlagName.Notifications, enabled: true, }, ]); @@ -76,19 +76,19 @@ describe('AlkemioAdapter', () => { it('Should return false', async () => { jest.spyOn(alkemioClient, 'featureFlags').mockResolvedValue([ { - name: 'ssi', + name: PlatformFeatureFlagName.Ssi, enabled: false, }, { - name: 'communications', + name: PlatformFeatureFlagName.Communications, enabled: true, }, { - name: 'subscriptions', + name: PlatformFeatureFlagName.Subscriptions, enabled: false, }, { - name: 'notifications', + name: PlatformFeatureFlagName.Notifications, enabled: false, }, ]);