Skip to content

Commit 1bcec9f

Browse files
committed
Fix SDK tests (#3593)
* fix sdk tests and app bundle size * fix lint
1 parent a1176eb commit 1bcec9f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/commerce-sdk-react/src/auth/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@ describe('Auth', () => {
957957
const auth = new Auth(configSLASPrivate)
958958

959959
await auth.authorizePasswordless({userid: 'userid'})
960-
expect(helpers.authorizePasswordless).toHaveBeenCalled()
961-
const functionArg = (helpers.authorizePasswordless as jest.Mock).mock.calls[0][0]
960+
expect(slasClient.authorizePasswordlessCustomer).toHaveBeenCalled()
961+
const functionArg = (slasClient.authorizePasswordlessCustomer as jest.Mock).mock.calls[0][0]
962962
expect(functionArg).toMatchObject({
963963
parameters: {
964964
userid: 'userid',

packages/commerce-sdk-react/src/hooks/ShopperConfigurations/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import {renderHook} from '@testing-library/react'
87
import {useConfigurations} from './query'
98

109
describe('ShopperConfigurations', () => {

0 commit comments

Comments
 (0)