CoffeeScript Ddry Snippets
CoffeeScript snippets for ddry data-driven DRY Node JS testing wrapper
Labels snippets
Details
Installs
- Total 1K
- Win 445
- Mac 416
- Linux 281
Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text CoffeeScript snippets for ddry
Set of CoffeeScript snippets for ddry data-driven DRY Node JS testing wrapper.
Scope of all these snippets is source:coffee
, so please save your brand new data-driven spec file as .coffee
to enable them.
Then, even if you haven't decided yet what are you going to test, ddp tab
will expand to
Error: language “coffee” is not supported
'use strict'
module.exports = (dd) ->
dd.drive [
dd.pending()
]
This spec is very promising since it can actually engage every test harness, but sadly useless.
To start actual testing, expand dd tab
it tab
to
Error: language “coffee” is not supported
'use strict'
module.exports = (dd) ->
dd.drive [
it: 'get things done'
i: [ input ]
e: expected
]
Then cit
will give you comma and the next it
object, so please start it at correct indent level.
Use ddr
to start just dd.drive
call, ddc
for dd.context
. And we have now only minor snippets left.
Matchers
m:
formatcher: 'plain'
m:a
formatcher: 'anyOrder'
m:c
formatcher: 'contains'
m:e
formatcher: 'error'
m:p
formatcher: 'property'
Hooks
bh
forbefore
hookah
forafter
hook
Keep focused and save your time.