Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into error-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kurund committed Sep 11, 2023
2 parents 21bd696 + 8c2591f commit d2e71e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions __tests__/Login.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('Login screen', () => {
expect(getByTestId('organisationURL')).toBeDefined();
expect(getByTestId('mobileNumber')).toBeDefined();
expect(getByTestId('password')).toBeDefined();
expect(getByTestId('forgotPassword')).toBeDefined();
expect(getByText('Log in')).toBeDefined();
});

Expand Down Expand Up @@ -85,15 +84,15 @@ describe('Login screen', () => {
// expect(setTokenMock).toHaveBeenCalledWith(responseMock.access_token);
});

test('should navigate to reset password screen', async () => {
const navigateMock = jest.fn();
const { getByTestId } = customRender(<Login navigation={{ navigate: navigateMock }} />);
// test('should navigate to reset password screen', async () => {
// const navigateMock = jest.fn();
// const { getByTestId } = customRender(<Login navigation={{ navigate: navigateMock }} />);

fireEvent.press(getByTestId('forgotPassword'));
await waitFor(() => {
expect(navigateMock).toHaveBeenCalledWith('ResetPassword');
});
});
// fireEvent.press(getByTestId('forgotPassword'));
// await waitFor(() => {
// expect(navigateMock).toHaveBeenCalledWith('ResetPassword');
// });
// });

test('should navigate to add organisation url screen', async () => {
const navigateMock = jest.fn();
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "Glific",
"slug": "glific",
"version": "0.2.0",
"version": "0.3.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -18,15 +18,15 @@
"supportsTablet": true,
"usesIcloudStorage": true,
"bundleIdentifier": "org.glific.mobile",
"buildNumber": "6"
"buildNumber": "7"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "org.glific.mobile",
"versionCode": 6
"versionCode": 7
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down

0 comments on commit d2e71e4

Please sign in to comment.