From 4e6509f5f622a79b973cb637eb29809f2e5b6e33 Mon Sep 17 00:00:00 2001 From: amam-deriv Date: Thu, 22 Aug 2024 13:56:41 +0800 Subject: [PATCH] fix: update the string type to number to match with BE --- src/hooks/custom-hooks/__tests__/useOAuth2Enabled.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/custom-hooks/__tests__/useOAuth2Enabled.spec.ts b/src/hooks/custom-hooks/__tests__/useOAuth2Enabled.spec.ts index 0caed373..c0cc8e33 100644 --- a/src/hooks/custom-hooks/__tests__/useOAuth2Enabled.spec.ts +++ b/src/hooks/custom-hooks/__tests__/useOAuth2Enabled.spec.ts @@ -15,7 +15,7 @@ describe('useOAuth2Enabled', () => { const emulateAppIdAvailable = [ {}, { - enabled_for: ['111'], + enabled_for: [111], }, ]; (useGrowthbookGetFeatureValue as jest.Mock).mockReturnValue([emulateAppIdAvailable, true]); @@ -28,7 +28,7 @@ describe('useOAuth2Enabled', () => { const emulateAppIdAvailable = [ {}, { - enabled_for: ['112'], + enabled_for: [112], }, ]; (useGrowthbookGetFeatureValue as jest.Mock).mockReturnValue([emulateAppIdAvailable, true]);