Using HTML fixtures
Continuing with the development of the NewInvestmentView
component, we can write some basic acceptance criteria, such as the following:
NewInvestmentView
should allow the input of the stock symbolNewInvestmentView
should allow the input of sharesNewInvestmentView
should allow the input of the share price
There are many more, but this is a good start.
Create a new spec file for this component in the new file NewInvestmentViewSpec.js
inside the spec
folder, and we can start to translate those specs, as follows:
describe("NewInvestmentView", function() { it("should allow the input of the stock symbol", function() { }); it("should allow the input of shares", function() { }); it("should allow the input of the share price", function() ...
Get Jasmine JavaScript Testing - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.