diff --git a/UltiSnips/javascript-jasmine.snippets b/UltiSnips/javascript-jasmine.snippets index e3f3ad7..b522b0c 100644 --- a/UltiSnips/javascript-jasmine.snippets +++ b/UltiSnips/javascript-jasmine.snippets @@ -28,6 +28,18 @@ afterEach(function() { }); 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 jasmine.any($1) endsnippet @@ -50,6 +62,14 @@ snippet ee "expect to equal (js)" b expect(${1:target}).toEqual(${2:value}); 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 expect(${1:target}).toBe(${2:value}); endsnippet @@ -74,6 +94,10 @@ snippet ed "expect to be defined (js)" b expect(${1:target}).toBeDefined(); endsnippet +snippet eud "expect to be defined (js)" b +expect(${1:target}).toBeUndefined(); +endsnippet + snippet en "expect to be null (js)" b expect(${1:target}).toBeNull(); endsnippet @@ -98,6 +122,14 @@ snippet note "expect not to equal (js)" b expect(${1:target}).not.toEqual(${2:value}); 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 expect(${1:target}).not.toMatch(${2:pattern}); endsnippet