- Overview
- Transcript
5.4 Sinon Mocks
In our last Sinon lesson we’ll look at mocks, which build on spies and stubs by adding in specific, pre-programmed expectations, giving you the most control over your method testing.
Related Links1.Introduction5 lessons, 35:28
5 lessons, 35:28
1.1Introduction01:11
1.1
Introduction
01:11
1.2Getting Started03:29
1.2
Getting Started
03:29
1.3Writing Your First Test13:55
1.3
Writing Your First Test
13:55
1.4Building a Test Suite10:54
1.4
Building a Test Suite
10:54
1.5Mocha on the Command Line05:59
1.5
Mocha on the Command Line
05:59
2.Fundamental Concepts of JavaScript Unit Testing5 lessons, 32:32
5 lessons, 32:32
2.1Dependency Injection04:54
2.1
Dependency Injection
04:54
2.2Asynchronous Testing05:41
2.2
Asynchronous Testing
05:41
2.3Before and After Hooks12:52
2.3
Before and After Hooks
12:52
2.4Segmenting with Skip and Only03:16
2.4
Segmenting with Skip and Only
03:16
2.5Fixtures05:49
2.5
Fixtures
05:49
3.Using Chai Assertions3 lessons, 12:01
3 lessons, 12:01
3.1Chai Assert02:20
3.1
Chai Assert
02:20
3.2Chai Should06:41
3.2
Chai Should
06:41
3.3Chai Expect03:00
3.3
Chai Expect
03:00
4.Putting it All Together3 lessons, 19:20
3 lessons, 19:20
4.1Running Mocha Tests in the Browser05:00
4.1
Running Mocha Tests in the Browser
05:00
4.2Automated Browser Testing with Testling09:18
4.2
Automated Browser Testing with Testling
09:18
4.3Continuous Integration with Travis CI05:02
4.3
Continuous Integration with Travis CI
05:02
5.More Control with Sinon.JS4 lessons, 20:44
4 lessons, 20:44
5.1Introduction to Sinon03:30
5.1
Introduction to Sinon
03:30
5.2Sinon Spies06:00
5.2
Sinon Spies
06:00
5.3Sinon Stubs04:35
5.3
Sinon Stubs
04:35
5.4Sinon Mocks06:39
5.4
Sinon Mocks
06:39
6.Conclusion1 lesson, 01:32
1 lesson, 01:32
6.1Conclusion01:32
6.1
Conclusion
01:32