You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
897 B
34 lines
897 B
# 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'
|
|
#
|
|
# Each scope (e.g. '.source.coffee' 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:
|
|
# https://atom.io/docs/latest/using-atom-basic-customization#cson
|
|
|
|
'.source.js':
|
|
'mocha-test':
|
|
'prefix': 'describe'
|
|
'body': """
|
|
import { expect } from 'chai';
|
|
|
|
describe('$1', function() {
|
|
it('should $2', function() {
|
|
// test goes here
|
|
});
|
|
});
|
|
"""
|
|
|