Skip to content

Commit 05eabf9

Browse files
committed
fix profile tests
1 parent 2531c5c commit 05eabf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/template-retail-react-app/app/pages/account/profile.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ afterEach(() => {
5757
})
5858

5959
test('Allows customer to edit phone number', async () => {
60-
sdk.useCustomerType.mockReturnValue({isRegistered: true, uido: 'ecom'})
60+
sdk.useCustomerType.mockReturnValue({isRegistered: true, isExternal: false})
6161

6262
global.server.use(
6363
rest.get('*/customers/:customerId', (req, res, ctx) =>
@@ -95,7 +95,7 @@ test('Allows customer to edit phone number', async () => {
9595
})
9696

9797
test('Non ECOM user cannot see the password card', async () => {
98-
sdk.useCustomerType.mockReturnValue({isRegistered: true, uido: 'Google'})
98+
sdk.useCustomerType.mockReturnValue({isRegistered: true, isExternal: true})
9999

100100
global.server.use(
101101
rest.get('*/customers/:customerId', (req, res, ctx) =>

0 commit comments

Comments
 (0)