- Jasmine Framework Cheat Sheet
- Karma Jasmine Angular Cheat Sheet
- Jasmine Cheat Sheet
- Jasmine Cheat Sheet
Update: If you are using Jasmine 2.0 or above, the information here is out of date! Please go to http://jasmine.github.io/2.0/introduction.html#section-Spies instead.
Wanna be a spy fast? Well you are in luck!
Just kidding! This is actually a cheatsheet for JasmineSpies.
See, while Jasmine itself is very intuitive to use, every time use spies I have to look up thedocs. I would blame it on the poorly chosen method/property names, but I won't. Instead I finally wrote myself a cheatsheet. I hope it helps other folks too.
- Jest uses Jasmine, and therefore has similar API. 0 Comments for this cheatsheet. Devhints.io / Over 352 curated cheatsheets, by developers for developers. Devhints home Other JavaScript libraries cheatsheets. Chai.js cheatsheet Flow cheatsheet Jest cheatsheet Lodash cheatsheet.
- Botanical Name Cheat Sheet Common Name Botanical Name Adam's Needle Yucca Allegheny Spurge Pachysandra procumbens Aster Aster Beardtongue Penstemon Bee Balm Monarda Bellwort Uvularia Black-Eyed Susan Rudbeckia Blanket Flower Gaillardia Blazing Star Liatris Bleeding Heart Dicentra Blue Flag Iris Iris versicolor Blue Lyme Grass Elymus Blue Star.
- This cheat sheet co-authored by Ravi Kiran and Suprotim Agarwal, aims at providing a quick reference to the most commonly used features in AngularJS. It will also make you quickly productive with Angular. This article is from the Free DNC Magazine for.Net and JavaScript developers.
Jasmine JS testing Cheat Sheet by CITguy - Cheatography.com Created Date: 0753Z. Angular is a platform for building mobile and desktop web applications. Join the community of millions of developers who build compelling user interfaces with Angular.
How to spy on a method?
How to verify it was called?
How to verify it was called with specific arguments?
How many times was it called?
What were the arguments to the last call?
How to reset all the calls made to the spy so far?
How to make a standalone spy function?
How to have spied method also calls through to the real function?
Update: if you are using Jasmine 2, andCallThrough()
has been changed to and.callThrough()
.
Jasmine Framework Cheat Sheet
How to get all arguments for all calls that have been made to the spy?
Karma Jasmine Angular Cheat Sheet
How do I fix the return value of a spy?
Jasmine Cheat Sheet
Jasmine Cheat Sheet
Update: if you are using Jasmine 2, andReturn(value)
has been changed to and.returnValue(value)
.