From 8d9025b8396504bf4eefd43cc68ad9eba7aebd57 Mon Sep 17 00:00:00 2001 From: Nick Plekhanov Date: Sat, 3 Sep 2016 20:34:22 +0200 Subject: [PATCH] atom: Add snippet for Mocha test statement --- atom/snippets.cson | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/atom/snippets.cson b/atom/snippets.cson index eb8f1b2..783148c 100644 --- a/atom/snippets.cson +++ b/atom/snippets.cson @@ -19,3 +19,16 @@ # 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 + }); +}); +"""