Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariflo committed Sep 21, 2023
1 parent 90f1b1e commit 851922e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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 @@ -7,9 +7,9 @@ beforeEach(() => {
});

/**
* We start with 3 listeners whenever a `ViewController` is created.
* We start with 4 listeners whenever a `ViewController` is created.
*/
const baselineListeners = 3;
const baselineListeners = 4;

test('Adds the event listener callback to the internal state', () => {
const viewController = createViewController();
Expand Down
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 851922e

Please sign in to comment.