Question: write it in Java Script in webstorm please in detail Q.4 Basic JS Unit Testing Using Mocha and Chai 1. Open UnitConverter project in Webstorm.
Q.4 Basic JS Unit Testing Using Mocha and Chai 1. Open UnitConverter project in Webstorm. You should see a JavaScript file named UnitConverter.js. In this exercise, you will create a spec file to unit test the function of the UnitConverter class. 2. Write a unit test for each of the methods mention in the below table You may start with the following inputs and expected results. Then use search for "google unit converter" to compute the expected results for more input values. Method Input Expected Result keToOunce 1 35.274 kgToPound 2 4.4092 meterToInch 1 39.3701 meterToFoot 2 6.5617 9. Run the unit tests as you develop them using WebStorm: UnitConverter.js Delete. Delete Unit Converter specjs Mark as Plain Text node_modules library root Run 'Unit Converter.spec.js' Ctrl+Shift+F10, package.json 2 After you complete the assignment, fill in the Testing Doc-Grading-Sheet.docx and save it inside Assignment2 folder. Push your work to Github repository. Q.4 Basic JS Unit Testing Using Mocha and Chai 1. Open UnitConverter project in Webstorm. You should see a JavaScript file named UnitConverter.js. In this exercise, you will create a spec file to unit test the function of the UnitConverter class. 2. Write a unit test for each of the methods mention in the below table You may start with the following inputs and expected results. Then use search for "google unit converter" to compute the expected results for more input values. Method Input Expected Result keToOunce 1 35.274 kgToPound 2 4.4092 meterToInch 1 39.3701 meterToFoot 2 6.5617 9. Run the unit tests as you develop them using WebStorm: UnitConverter.js Delete. Delete Unit Converter specjs Mark as Plain Text node_modules library root Run 'Unit Converter.spec.js' Ctrl+Shift+F10, package.json 2 After you complete the assignment, fill in the Testing Doc-Grading-Sheet.docx and save it inside Assignment2 folder. Push your work to Github repository
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
