# Sublime Unit.js This is a [Sublime Text](http://www.sublimetext.com) (2 / 3) package which includes a bunch of handy _snippets_ for writing unit tests with [Unit.js](http://unitjs.com). 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](http://unitjs.com/assets/img/screen-sublime-unitjs-snippet.gif) ## 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. [Package Control]: https://sublime.wbond.net/installation ### 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](https://github.com/unitjs/sublime-unitjs/archive/master.zip) 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](LICENSE). See the [complete license](LICENSE) in the package. ## Author | [![Nicolab.net](http://www.gravatar.com/avatar/d7dd0f4769f3aa48a3ecb308f0b457fc?s=64)](http://nicolab.net) | |---| | [Nicolas Talle](http://nicolab.net) | | [![Make a donation via Paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PGRH4ZXP36GUC) |