Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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