- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of sinon.js?
SinonJS provides stand-alone test spies, stubs and mocks. It is a library that we can use to create object mocks for unit testing.
Spies − Fake functions that we can use to track executions.
Stubs −Functions replacements from which we can return whatever we want or have our functions work in a way that suites us to be able to test multiple scenarios.
Mocks −Fake methods
All these objects help in unit testing our code.
- Related Articles
- What is the use of JavaScript cookies?
- What is the use of associative property
- What is the use of Vitamin E?
- What is the use of the app PhonePe?
- What is the use of "is" keyword in C#?
- What is the use of MySQL SUBSTRING_INDEX() function?
- What is the use of MySQL UNHEX() function?
- What is the use of IGNORE_SPACE SQL mode?
- What is the use of MySQL CHAR() function?
- What is the use of %n in printf()?
- What is the use of Map in JavaScript?
- What is the use of Atomics in JavaScript?
- What is the use of ini_set() in PHP?
- What is the use of cin.ignore() in C++?
- What is the use of OBJECT.assign() in javascript?

Advertisements