UnitJS
Sublime Text package which includes several handy snippets for writing unit tests with Unit.js.
Details
Installs
- Total 573
- Win 321
- Mac 154
- Linux 98
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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
:
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
- Download the UnitJS package
- Unzip the files and rename the folder to
UnitJS
into your Sublime TextPackages
directory
License
This package is released under the MIT license. See the complete license in the package.
Author
Nicolas Talle |