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

Suites and specifications


In the previous example, we saw that Jasmine is quite simple to use, even if we decided not to express our tests in a real BDD style. Its working pattern is always defined by a sequence of suites that contains a sequence of specifications, which, in turn, contains one or more expectations.

Suites

The describe Jasmine global function defines a suite that we can describe as a container for a given broad context (or more generally, if we don't want to think in BDD, a logical specifications grouping):

describe("a suite or context for specifications", function () {
  //a sequence of specifications
});

The describe function accepts two arguments: a string representing a sentence that expresses the suite/context and a function that contains all the code needed to execute the suite itself, mostly specifications.

It's also possible to nest in the suites calling one or more describe functions inside a parent describe function. This is useful when you have to narrow a big context...

Visually different images
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