Skip to content

Commit

Permalink
Merge branch 'main' into deliverable-6
Browse files Browse the repository at this point in the history
  • Loading branch information
yashb196 authored Sep 15, 2023
2 parents db753d3 + a053364 commit 54afbe9
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Install dependencies
run: |
yarn install --force
yarn install
- name: Run tests
run: |
yarn test
15 changes: 15 additions & 0 deletions __tests__/LoginScreen.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

import React from 'react';
import { shallow } from "enzyme";
import LoginScreen from '../lib/screens/loginScreens/LoginScreen.tsx';

describe("LoginScreen", () => {
it("renders without crashing", () => {
const wrapper = shallow(<LoginScreen />);
expect(wrapper).toMatchSnapshot();
});
});
15 changes: 15 additions & 0 deletions __tests__/NoteDetailModal.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

import React from 'react';
import { shallow } from "enzyme";
import NoteDetailModal from '../lib/screens/mapPage/NoteDetailModal.tsx';

describe("NoteDetailModal", () => {
it("renders without crashing", () => {
const wrapper = shallow(<NoteDetailModal />);
expect(wrapper).toMatchSnapshot();
});
});
3 changes: 3 additions & 0 deletions __tests__/__snapshots__/LoginScreen.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`LoginScreen renders without crashing 1`] = `ShallowWrapper {}`;
3 changes: 3 additions & 0 deletions __tests__/__snapshots__/NoteDetailModal.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NoteDetailModal renders without crashing 1`] = `ShallowWrapper {}`;
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "Where's Religion?",
"slug": "lrda_mobile",
"version": "1.0.3",
"version": "1.0.4",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -29,7 +29,7 @@
},
"config": {
"googleMaps": {
"apiKey": ""
"apiKey": "AIzaSyBwi5lzjEmTzGZPRFwx6dIZK7EOwV6VEKw"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions lib/screens/mapPage/NoteDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ const styles = StyleSheet.create({
height: 360,
marginBottom: 2,
overflow: "hidden",
borderColor: '#e0e0e0'
},
image: {
width: "100%",
Expand Down

0 comments on commit 54afbe9

Please sign in to comment.