Created
April 18, 2015 14:35
-
-
Save jeffschwartz/e690e4cd52186806e24a to your computer and use it in GitHub Desktop.
Atom snippets for Preamble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'Preamble describe': | |
| 'prefix': 'describe' | |
| 'body': """ | |
| describe('$1', function(){ | |
| $2 | |
| }); | |
| """ | |
| 'Preamble it': | |
| 'prefix': 'it' | |
| 'body': """ | |
| it('$1', function($2){ | |
| $3 | |
| }); | |
| """ | |
| 'Preamble beforeEach': | |
| 'prefix': 'beforeEach' | |
| 'body': """ | |
| beforeEach(function($1){ | |
| $2 | |
| }); | |
| """ | |
| 'Preamble afterEach': | |
| 'prefix': 'afterEach' | |
| 'body': """ | |
| afterEach(function($1){ | |
| $2 | |
| }); | |
| """ | |
| 'Preamble expect': | |
| 'prefix': 'expect' | |
| 'body': 'expect($1).$2' | |
| 'Preamble toEqual': | |
| 'prefix': 'toEqual' | |
| 'body': 'toEqual($1);' | |
| 'Preamble toNotEqual': | |
| 'prefix': 'toNotEqual' | |
| 'body': 'toNotEqual($1);' | |
| 'Preamble toBeTrue': | |
| 'prefix': 'toBeTrue' | |
| 'body': 'toBeTrue();$1' | |
| 'Preamble toBeFalse': | |
| 'prefix': 'toBeFalse' | |
| 'body': 'toBeFalse();$1' | |
| 'Preamble toBeTruthy': | |
| 'prefix': 'toBeTruthy' | |
| 'body': 'toBeTruthy();$1' | |
| 'Preamble toNotBeTruthy': | |
| 'prefix': 'toNotBeTruthy' | |
| 'body': 'toNotBeTruthy();$1' | |
| 'preamble callActual': | |
| 'prefix': 'callActual' | |
| 'body': 'callActual();$1' | |
| 'preamble callStub': | |
| 'prefix': 'callStub' | |
| 'body': 'callStub();$1' | |
| 'preamble throws': | |
| 'prefix': 'throws' | |
| 'body': 'throws($1);$2' | |
| 'preamble returns': | |
| 'prefix': 'returns' | |
| 'body': 'returns($1);$2' | |
| 'preamble returned': | |
| 'prefix': 'returned' | |
| 'body': 'returned($1);$2' | |
| 'preamble args.getArgumentsLength': | |
| 'prefix': 'getArgumentsLenghth' | |
| 'body': 'getArgumentsLength()' | |
| 'preamble args.hasArgument': | |
| 'prefix': 'hasArgument' | |
| 'body': 'hasArgument($1)' | |
| 'preamble args.getArgument': | |
| 'prefix': 'getArgument' | |
| 'body': 'getArgument($1)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment