|
| 1 | +'.source.ts': |
| 2 | + 'Jamine teardown for suite': |
| 3 | + 'prefix': 'afterAll' |
| 4 | + 'description': 'Jasmine teardown function to run after all specs of a suite' |
| 5 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#afterAll' |
| 6 | + 'body':""" |
| 7 | + afterAll(($1) => { |
| 8 | + $2 |
| 9 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 10 | + """ |
| 11 | + |
| 12 | + 'Jamine teardown for spec': |
| 13 | + 'prefix': 'afterEach' |
| 14 | + 'description': 'Jasmine teardown function to run after each spec of a suite' |
| 15 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#afterEach' |
| 16 | + 'body':""" |
| 17 | + afterEach(($1) => { |
| 18 | + $2 |
| 19 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 20 | + """ |
| 21 | + |
| 22 | + 'Jamine setup for suite': |
| 23 | + 'prefix': 'beforeAll' |
| 24 | + 'description': 'Jasmine setup function to run before all specs of a suite' |
| 25 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#beforeAll' |
| 26 | + 'body':""" |
| 27 | + beforeAll(($1) => { |
| 28 | + $2 |
| 29 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 30 | + """ |
| 31 | + |
| 32 | + 'Jamine setup for spec': |
| 33 | + 'prefix': 'beforeEach' |
| 34 | + 'description': 'Jasmine setup function to run before each spec of a suite' |
| 35 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#beforeEach' |
| 36 | + 'body':""" |
| 37 | + beforeEach(($1) => { |
| 38 | + $2 |
| 39 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 40 | + """ |
| 41 | + |
| 42 | + 'Jasmine test suite': |
| 43 | + 'prefix': 'describe' |
| 44 | + 'description': 'Jasmine describe snippet' |
| 45 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#describe' |
| 46 | + 'body': """ |
| 47 | + describe('${1:description}' => { |
| 48 | + ${2:body} |
| 49 | + }); |
| 50 | + """ |
| 51 | + |
| 52 | + 'Jasmine focused test suite': |
| 53 | + 'prefix': 'fdescribe' |
| 54 | + 'description': 'Jasmine describe snippet' |
| 55 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#fdescribe' |
| 56 | + 'body': """ |
| 57 | + fdescribe('${1:description}' => { |
| 58 | + ${2:body} |
| 59 | + }); |
| 60 | + """ |
| 61 | + |
| 62 | + 'Jasmine focused single spec': |
| 63 | + 'prefix': 'fit' |
| 64 | + 'description': 'Jasmine it snippet' |
| 65 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#fit' |
| 66 | + 'body': """ |
| 67 | + fit('${1:description}' => { |
| 68 | + ${2:body} |
| 69 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 70 | + """ |
| 71 | + |
| 72 | + 'Jasmine single spec': |
| 73 | + 'prefix': 'it' |
| 74 | + 'description': 'Jasmine it snippet' |
| 75 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#it' |
| 76 | + 'body': """ |
| 77 | + it('${1:description}' => { |
| 78 | + ${2:body} |
| 79 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 80 | + """ |
| 81 | + |
| 82 | + 'Jasmine excluded test suite': |
| 83 | + 'prefix': 'xdescribe' |
| 84 | + 'description': 'Jasmine describe snippet' |
| 85 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#xdescribe' |
| 86 | + 'body': """ |
| 87 | + xdescribe('${1:suite}' => { |
| 88 | + ${2:body} |
| 89 | + }); |
| 90 | + """ |
| 91 | + |
| 92 | + 'Jasmine excluded single spec': |
| 93 | + 'prefix': 'xit' |
| 94 | + 'description': 'Jasmine it snippet' |
| 95 | + 'descriptionMoreURL': 'https://jasmine.github.io/api/2.6/global.html#xit' |
| 96 | + 'body': """ |
| 97 | + xit('${1:description}' => { |
| 98 | + ${2:body} |
| 99 | + }, ${3:jasmine.DEFAULT_TIMEOUT_INTERVAL}); |
| 100 | + """ |
0 commit comments