add jasmine beforeAll, afterAll, toBeUndefined snippets

This commit is contained in:
sasidhar-d 2015-10-09 19:48:19 +05:30
parent 2d64dabfd1
commit 7e51c1452a

View File

@ -28,6 +28,18 @@ afterEach(function() {
}); });
endsnippet endsnippet
snippet befa "before all (js)" b
beforeAll(function() {
$0
});
endsnippet
snippet afta "after all (js)" b
afterAll(function() {
$0
});
endsnippet
snippet any "any (js)" b snippet any "any (js)" b
jasmine.any($1) jasmine.any($1)
endsnippet endsnippet
@ -50,6 +62,14 @@ snippet ee "expect to equal (js)" b
expect(${1:target}).toEqual(${2:value}); expect(${1:target}).toEqual(${2:value});
endsnippet endsnippet
snippet el "expect to be less than (js)" b
expect(${1:target}).toBeLessThan(${2:value});
endsnippet
snippet eg "expect to be greater than (js)" b
expect(${1:target}).toBeGreaterThan(${2:value});
endsnippet
snippet eb "expect to be (js)" b snippet eb "expect to be (js)" b
expect(${1:target}).toBe(${2:value}); expect(${1:target}).toBe(${2:value});
endsnippet endsnippet
@ -74,6 +94,10 @@ snippet ed "expect to be defined (js)" b
expect(${1:target}).toBeDefined(); expect(${1:target}).toBeDefined();
endsnippet endsnippet
snippet eud "expect to be defined (js)" b
expect(${1:target}).toBeUndefined();
endsnippet
snippet en "expect to be null (js)" b snippet en "expect to be null (js)" b
expect(${1:target}).toBeNull(); expect(${1:target}).toBeNull();
endsnippet endsnippet
@ -98,6 +122,14 @@ snippet note "expect not to equal (js)" b
expect(${1:target}).not.toEqual(${2:value}); expect(${1:target}).not.toEqual(${2:value});
endsnippet endsnippet
snippet notl "expect to not be less than (js)" b
expect(${1:target}).not.toBeLessThan(${2:value});
endsnippet
snippet notg "expect to not be greater than (js)" b
expect(${1:target})..not.toBeGreaterThan(${2:value});
endsnippet
snippet notm "expect not to match (js)" b snippet notm "expect not to match (js)" b
expect(${1:target}).not.toMatch(${2:pattern}); expect(${1:target}).not.toMatch(${2:pattern});
endsnippet endsnippet