nassimtaghipour / Negotiation-React-App

React.js app with unit tests that are implemented by jest-enzyme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

React.js app with unit tests that are implemented by jest-enzyme


Languages

Language:JavaScript 77.8%Language:CSS 18.4%Language:HTML 3.7%