diff --git a/.github/workflows/Native.yml b/.github/workflows/Native.yml
index 3d00772..7d90614 100644
--- a/.github/workflows/Native.yml
+++ b/.github/workflows/Native.yml
@@ -24,4 +24,4 @@ jobs:
yarn install
- name: Run tests
run: |
- yarn test
+ yarn test
\ No newline at end of file
diff --git a/__tests__/MoreScreen.test.tsx b/__tests__/MoreScreen.test.tsx
index ab7258c..e708b7c 100644
--- a/__tests__/MoreScreen.test.tsx
+++ b/__tests__/MoreScreen.test.tsx
@@ -28,7 +28,7 @@ beforeAll(() => {
afterAll(() => {
console.log.mockRestore();
console.error.mockRestore();
- moxios.uninstall();
+ // moxios.uninstall();
});
describe("MorePage", () => {
@@ -47,20 +47,20 @@ describe("MorePage", () => {
// Check if the onValueChange prop exists
expect(toggleButton.props().onValueChange).toBeDefined();
});
+});
- describe("opens email link when 'Report a Bug' is pressed", () => {
- it("opens email link when 'Report a Bug' is pressed", () => {
- const spy = jest.spyOn(Linking, 'openURL');
- const wrapper = shallow();
- const emailButton = wrapper.findWhere((node) => node.key() === "Email");
+describe("opens email link when 'Report a Bug' is pressed", () => {
+ it("opens email link when 'Report a Bug' is pressed", () => {
+ const spy = jest.spyOn(Linking, 'openURL');
+ const wrapper = shallow();
+ const emailButton = wrapper.findWhere((node) => node.key() === "Email");
- emailButton.simulate('press');
+ emailButton.simulate('press');
- expect(spy).toHaveBeenCalledWith(
- "mailto:yashkamal.bhatia@slu.edu?subject=Bug%20Report%20on%20'Where's%20Religion%3F'&body=Please%20provide%20details%20of%20your%20issue%20you%20are%20facing%20here."
- );
- });
- });
+ expect(spy).toHaveBeenCalledWith(
+ "mailto:yashkamal.bhatia@slu.edu?subject=Bug%20Report%20on%20'Where's%20Religion%3F'&body=Please%20provide%20details%20of%20your%20issue%20you%20are%20facing%20here."
+ );
+});
describe("calls the logout function when 'Logout' is pressed", () => {
it("calls the logout function when 'Logout' is pressed", () => {
@@ -73,4 +73,4 @@ describe("MorePage", () => {
expect(spy).toHaveBeenCalled();
});
});
-});
\ No newline at end of file
+});
diff --git a/lib/models/user_class.ts b/lib/models/user_class.ts
index 17270e6..93e0adc 100644
--- a/lib/models/user_class.ts
+++ b/lib/models/user_class.ts
@@ -101,7 +101,7 @@ export class User {
this.userData = null;
this.clearUser();
this.notifyLoginState();
- console.log("User logged out");
+ // console.log("User logged out");
}
})
.catch((err) => {
@@ -131,7 +131,6 @@ export class User {
return onboarded === '1';
}
-
public async getRoles(): Promise<{
administrator: boolean;
contributor: boolean;
diff --git a/lib/screens/MorePage.tsx b/lib/screens/MorePage.tsx
index 706c75d..fb42938 100644
--- a/lib/screens/MorePage.tsx
+++ b/lib/screens/MorePage.tsx
@@ -14,8 +14,7 @@ import {
import { Ionicons } from "@expo/vector-icons";
import { User } from "../models/user_class";
import { useTheme } from "../components/ThemeProvider";
-
-// import Accordion from "@gapur/react-native-accordion";
+import Accordion from "@gapur/react-native-accordion";
const user = User.getInstance();
const { width, height } = Dimensions.get("window");