December 2017
Intermediate to advanced
282 pages
5h 54m
English
Jasmine is an independent unit testing framework for effectively testing JavaScript components in a behavior-driven development architecture.
It can be added to our environment using the following commands:
npm install --save-dev jasmine
./node_modules/.bin/jasmine init
Once Jasmine is installed, we can add the following web content to the components to unit test the respective components:
//no additional content required
var ourDataArray = { ControlPanel: { CurrentInOrder: 1 }, Questions: [{ Text: "Human Capital Management" }, { Text: "Payroll" }, { Text: "Benefits" }, { Text: "Financials" }] }; describe("Our data array", function() ...Read now
Unlock full access