

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- What is the use of JavaScript cookies?
- What is the use of the app PhonePe?
- What is the use of the @ symbol in PHP?
- What is the use of JavaScript eval function?
- What is the use of MySQL FROM_UNIXTIME() function?
- What is the use of MySQL GET_FORMAT() function?
- What is the use of ALLOW_INVALID_DATES SQL mode?
- What is the use of NCHAR in MySQL?
- What is the use of MySQL LAST_INSERT_ID() function?
- What is the use of MySQL CONCAT_WS() function?
- What is the use of MySQL TRUNCATE() function?
- What is the use of MySQL UNHEX() function?
- What is the use of MySQL SUBSTRING_INDEX() function?
- What is the use of IGNORE_SPACE SQL mode?
- What is the use of MySQL CHAR() function?
Advertisements