Skip to content

Linesmerrill/atom-mocha-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge apm

Mocha Snippets

JavaScript/TypeScript 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

  • @th-we - Added Typescript support

License

[MIT] © [Merrill Lines]

About

Snippets for the Javascript/Typescript BDD framework Mocha: https://mochajs.org/. It works based on language detection, ES5 for JavaScript language and ES6 for Babel-JavaScript language

Resources

License

Stars

Watchers

Forks

Packages

No packages published