• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

atom-mocha-snippets

Snippets for the javascript BDD framework Mocha: https://mochajs.org/. It works based on language detection, ES5 for javascript language and ES6 for babel-javascript language
  • #mocha
  • #javascript
  • #bdd
  • #snippets
  • #tdd
Linesmerrill
1,097
5
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

badge apm

Mocha Snippets

Snippets for Mocha in Atom.

Install

apm install atom-mocha-snippets or search “snippets” under packages within Atom.

Note: Atom requires a restart after settings are changed for them to take effect.

Settings

Toggle Double Quotes: [Default: single quotes] Allows the user to toggle between single and double quotes.

Toggle Semicolons: [Default: with semicolons] Allows the user to toggle between having semicolons on or off.

Note: Atom requires a restart after settings are changed for them to take effect.

Snippets

describe

describe('', function(){

});

context

context('', function(){

});

it

it('', function(){

});

specify

specify('', function(){

});

before

before(function(){

});

beforeEach

beforeEach(function(){

});

after

after(function(){

});

afterEach

afterEach(function(){

});

pending

it('');

retries

this.retries(integer);

timeout

this.timeout(milliseconds);

Contributors:

  • @coichedid - Added ES6 support

  • @thoiberg - Added configurable settings for semicolons

License

[MIT] © [Merrill Lines]

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by