Skip to content

Instantly share code, notes, and snippets.

@ArnaudWopata
Created July 2, 2014 13:37
Show Gist options
  • Save ArnaudWopata/207a0544a89860fada3a to your computer and use it in GitHub Desktop.
Save ArnaudWopata/207a0544a89860fada3a to your computer and use it in GitHub Desktop.
Atom JS BDD snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
'.source.coffee':
'Console log':
'prefix': 'log'
'body': 'console.log $1'
".source.js":
"context":
"prefix": "con"
"body": """
context('${1:description}', function() {
${0:// body...}
});
"""
"before":
"prefix": "bef"
"body": """
before(function() {
${1:// body...}
});
"""
"beforeEach":
"prefix": "befE"
"body": """
beforeEach(function() {
${1:// body...}
});
"""
"after":
"prefix": "aft"
"body": """
after(function() {
${1:// body...}
});
"""
"afterEach":
"prefix": "afterE"
"body": """
afterEach(function() {
${1:// body...}
});
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment