ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Unit​JS

by unitjs ST2/ST3

Sublime Text package which includes several handy snippets for writing unit tests with Unit.js.

Details

Installs

  • Total 411
  • Win 229
  • OS X 109
  • Linux 73
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Unit.js

This is a Sublime Text (2 / 3) package which includes a bunch of handy snippets for writing unit tests with Unit.js.

Snippets :

  • describe
  • it
  • case
  • given
  • when
  • then
  • exception
  • error
  • value-throws
  • trigger-error
  • and all main asserters (object, number, value, date, function, bool, regexp, …)

Example for the snippet exception :

Snippet: exception

Installation

Package Control

The recommended way to install and keep up to date is to install it via Package Control. Once you have installed Package Control, open it via Preferences -> Package Control and click on Package Control: Install Package. Type UnitJS into the search box (if the UnitJS package is not found, updates your Package Control), then hit enter or click on the result to install.

Manually

Alternatively, you can manually install the UnitJS package for Sublime Text.

You can locate your Sublime Text Packages directory by using the menu item Preferences -> Browse Packages....

Usually the directory is:

  • Debian / Ubuntu: cd “~/.config/sublime-text-3/Packages”
  • Mac OS: cd “~/Library/Application Support/Sublime Text 3/Packages”
  • Windows 7: cd “C:\Users\YOUR_USERNAME\AppData\Roaming\Sublime Text 3\Packages”

Inside the Packages directory, add the UnitJS package for Sublime Text.

Using Git

If you are a git user, you can install by cloning the repository directly into your Packages directory in the Sublime Text application settings area.

Inside the Packages directory, clone the repository using the command below:

git clone https://github.com/unitjs/sublime-unitjs.git UnitJS

Download

  1. Download the UnitJS package
  2. Unzip the files and rename the folder to UnitJS into your Sublime Text Packages directory

License

This package is released under the MIT license. See the complete license in the package.

Author

Nicolab.net
Nicolas Talle
Make a donation via Paypal