Skip to content

Instantly share code, notes, and snippets.

Last active Jan 15, 2018
What would you like to do?
Atom Snippets: Tape
# 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:
# '':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
# Each scope (e.g. '' above) can only be declared once.
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
'prefix': 'tape.skip'
'body': 'tape.skip(${1:name}, ${2:callback})'
'prefix': 'tape.onFinish'
'body': 'tape.onFinish(${1:fn})'
'prefix': 'tape.onFailure'
'body': 'tape.onFailure(${1:fn})'
'prefix': 'tape'
'body': 'tape(${1:name}, (test) => {${2:fn}})'
'prefix': 'test.plan'
'body': 'test.plan(${1:count})'
'prefix': 'test.end'
'body': 'test.end(${1:err})'
'prefix': 'test.pass'
'body': 'test.pass(${1:message})'
'prefix': ''
'body': '{$1:message})'
'prefix': 'test.timeoutAfter'
'body': 'test.timeoutAfter(${1:ms})'
'prefix': 'test.skip'
'body': 'test.skip(${1:message})'
'prefix': 'test.ok'
'body': 'test.ok(${1:value}, ${2:msg})'
'prefix': 'test.notOk'
'body': 'test.notOk(${1:value}, ${2:msg})'
'prefix': 'test.error'
'body': 'test.error(${1:err}, ${2:msg})'
'prefix': 'test.equal'
'body': 'test.equal(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.notEqual'
'body': 'test.notEqual(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.notEqual'
'body': 'test.notEqual(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.deepEqual'
'body': 'test.deepEqual(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.notDeepEqual'
'body': 'test.notDeepEqual(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.looseDeepEqual'
'body': 'test.looseDeepEqual(${1:actual}, ${2:expected}, ${3:msg})'
'prefix': 'test.throws'
'body': 'test.throws(${1:fn}, ${2:expected}, ${3:msg})'
'prefix': 'test.throws'
'body': 'test.throws(${1:fn}, ${2:expected}, ${3:msg})'
'prefix': 'test.comment'
'body': 'test.comment(${1:message})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment