Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariflo committed Sep 21, 2023
1 parent 90f1b1e commit 03c9740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('Creates a `DEPRECATION_NOTICE` warning with `useInstead` suffix', async ()
warningAssertions(
warning,
'DEPRECATION_NOTICE',
'`test()` will be removed from `magic-sdk` in version `v999`. Use `test2()` instead.',
'`test()` will be removed from `magic-sdk` in version `v999`. Use `test2()` instead .',
);
});

Expand All @@ -130,12 +130,12 @@ test('Creates a `DEPRECATION_NOTICE` warning with `useInstead` containing "Dedic
'@magic-sdk/react-native-bare': 'v888',
'@magic-sdk/react-native-expo': 'v777',
},
useInstead: 'useDedicatedWallet()',
useInstead: 'Dedicated Wallet',
});

warningAssertions(
warning,
'DEPRECATION_NOTICE',
'`test()` will be removed from `magic-sdk` in version `v999`. Use `useDedicatedWallet()` instead to prevent disruption of the wallet service.',
'`test()` will be removed from `magic-sdk` in version `v999`. Use `Dedicated Wallet` instead to prevent disruption of the wallet service.',
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('Creates a `DEPRECATION_NOTICE` warning with `useInstead` containing "Dedic
const expectedWarning = new MagicExtensionWarning(
baseExtension,
'DEPRECATION_NOTICE',
'`test()` will be removed from this Extension in version `v999`. Use `useDedicatedWallet()` instead to prevent disruption of the wallet service.',
'`test()` will be removed from this Extension in version `v999`. Use `useDedicatedWallet()` instead.',
);

const error: MagicExtensionWarning = baseExtension.createDeprecationWarning({
Expand Down

0 comments on commit 03c9740

Please sign in to comment.