pep-atom-snippets

Atom.io Snippets (ES6/7, BDD testing, etc...)

Pepeye

278

0

0.4.0

MIT

GitHub

pep-atom-snippets package

Atom.io snippets for ES6/7, Modules, React and BDD testing

React ES7 snippets for atom

ES6/7 module imports

imp⇥ import default from library

import $1 from '$2'

imb⇥ import module from library

import { $1 } from '$2'

impd⇥ import all modules as ... from library

import * as $1 from '$2'

BDD testing (mocha, chai, jest...)

desc⇥ describe

describe('${1:description}', () => {
  ${0}
})

its⇥ synchronous "it"

it('${1:description}', () => {
  ${0}
})

ita⇥ asynchronous "it"

it('${1:description}', (done) => {
  ${0}
})

bef⇥ before

before(() => {
  ${0}
})

befe⇥ beforeEach

beforeEach(() => {
  ${0}
})

aft⇥ after

after(() => {
  ${0}
})

afte⇥ afterEach

afterEach(() => {
  ${0}
})

jta⇥ asynchronous "test"

test('${1:description}', (done) => {
  ${0}
})

its⇥ synchronous "test"

test('${1:description}', () => {
  ${0}
})