Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WEB APP TESTING USING KNOCKOUT.JS
  • Table Of Contents Toc
WEB APP TESTING USING KNOCKOUT.JS

WEB APP TESTING USING KNOCKOUT.JS

By : Roberto Messora
5 (3)
close
close
WEB APP TESTING USING KNOCKOUT.JS

WEB APP TESTING USING KNOCKOUT.JS

5 (3)
By: Roberto Messora

Overview of this book

If you are a JavaScript developer, beginner, or an expert who wants to improve quality standards in terms of solutions design and functional verification, this book is for you. Basic understanding of web development, HTML, and JavaScript is required.
Table of Contents (6 chapters)
close
close

Setup and teardown


It's important to understand that the describe and it global functions will not only contain specifications and expectations respectively. It's always necessary to add some more code to set up the complete and working tests, for example, code needed to implement all the objects involved in what we are verifying and all the method calls that trigger the specifications events that we need to stress on.

There are two Jasmine global functions that help setting up a proper test execution environment: beforeEach and afterEach. Like every other unit testing framework, Jasmine provides these two functions to set up and teardown a specification context. In the beforeEach function, we have to write all the code needed to create and initialize all the objects that we need to execute a single specification. The afterEach function is used to reset all these objects. They both take a function as a single argument, which will be executed by the spec runner.

Jasmine calls these two functions...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WEB APP TESTING USING KNOCKOUT.JS
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon