Open stocarul opened 9 years ago
The following snippets should be created:
jade
describe("VAR", function() {
it("VAR", function() {
VAR
});
});
jait
it("VAR", function() {
VAR
});
jabeea
beforeEach(function() {
VAR
});
jaafea
afterEach(function() {
VAR
});
jaexbe
- expect(VAR).toBe(VAR);
jaexnbe
- expect(VAR).not.toBe(VAR);
jaexeq
- expect(VAR).toEqual(VAR);
jaexneq
- expect(VAR).not.toEqual(VAR);
jaexma
- expect(VAR).toMatch(VAR);
jaexnma
- expect(VAR).not.toMatch(VAR);
jaexde
- expect(VAR).toBeDefined();
jaexnde
- expect(VAR).not.toBeDefined();
jaexunde
- expect(VAR).toBeUndefined();
jaexnunde
- expect(VAR).not.toBeUndefined();
jaexnu
- expect(VAR).toBeNull();
jaexnnu
- expect(VAR).not.toBeNull();
jaextr
- expect(VAR).toBeTruthy();
jaexntr
- expect(VAR).not.toBeTruthy();
jaexfa
- expect(VAR).toBeFalsy();
jaexnfa
- expect(VAR).not.toBeFalsy();
jaexco
- expect(VAR).toContain(VAR);
jaexnco
- expect(VAR).not.toContain(VAR);
jasp
- spyOn(VAR, 'VAR');
jaspre
- spyOn(VAR, 'VAR').andReturn(VAR);
jaspob
- jasmine.createSpyObj('VAR', [VAR]);
jaexca
- expect(VAR).toHaveBeenCalled();
jaexcawi
- expect(VAR). toHaveBeenCalledWith(VAR);
http://jasmine.github.io/1.3/introduction.html
A new dedicated page (like the one for AngularJS should be created). All snippets should have
ja
as prefix.