Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nassimtaghipour/negotiation-react-app
React.js app with unit tests that are implemented by jest-enzyme
https://github.com/nassimtaghipour/negotiation-react-app
bootstrap4 css3 enzyme-testing html5 jest-tests negotiation reactjs unit-testing
Last synced: 6 days ago
JSON representation
React.js app with unit tests that are implemented by jest-enzyme
- Host: GitHub
- URL: https://github.com/nassimtaghipour/negotiation-react-app
- Owner: nassimtaghipour
- Created: 2020-05-11T16:40:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T01:31:20.000Z (about 3 years ago)
- Last Synced: 2023-03-08T07:08:44.082Z (over 1 year ago)
- Topics: bootstrap4, css3, enzyme-testing, html5, jest-tests, negotiation, reactjs, unit-testing
- Language: JavaScript
- Homepage:
- Size: 1.69 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is created by React.js, Bootstrap4, Css3, Html5, jest-enzyme
The app is based on the idea of a work contract negotiation: Employer and employee enter salary values and the app tells if the expectations meet.
The interface of the app consists of two tabs: one for the employee and one for the employer. Each tab contains an input box which only accepts numbers, and a “Submit” button. Once a value has been entered and submitted, the input field of the tab disappears.
The employer enters how much she is willing to pay maximally. The employee enters how much he expects to be paid minimally. As soon as both inputs have been submitted, a modal window pops up and shows either “Success!” or “Failure!”, as well as the entered values.
“Success” is only if the employee’s minimum pay is equal to or below the employer’s maximum pay. Otherwise the input is considered a “Failure”.
The modal window should also show the current temperature in London, using data from the the https://openweathermap.org/current API.Project setup:
npm install
npm start
For runing test:
npm test