Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwcnewton/jasmine-visualstudio-snippets

Jasmine Code snippets for Visual Studio :scissors: :scissors:
https://github.com/jwcnewton/jasmine-visualstudio-snippets

jasmine jasmine-visualstudio-snippets snippets visual-studio

Last synced: 13 days ago
JSON representation

Jasmine Code snippets for Visual Studio :scissors: :scissors:

Awesome Lists containing this project

README

        

# Jasmine-VisualStudio-Snippets
Jasmine Code snippets for Visual Studio :scissors: :scissors:

Import Code Snippets
***
Bring up the code snippet menu in one of three ways:
1. Press CTRL+K, CTRL+X.
2. On the **Edit** menu, point to **IntelliSense**, and then click Insert **Snippet**.
3. Right-click the mouse and then select the **Insert Snippet** command on the shortcut menu.

Select the import snippets and navigate to the snippets folder and import

## The snippets

> Create a new test suite.
> Command: **desc**
```javascript
describe("", function() {

});
```
> Create a new test.
> Command: **it**
```javascript
it("", function() {
// Arrange

// Act

// Assert
});
```
> Create before each suite life cycle hook
> Command: **beforeE**
```javascript
beforeEach(function() {

});
```
> Create after each suite life cycle hook
> Command: **afterE**
```javascript
afterEach(function() {

});
```
> Create before all suite life cycle hook
> Command: **beforeA**
```javascript
beforeAll(function() {

});
```
> Create after all suite life cycle hook
> Command: **afterA**
```javascript
afterAll(function() {

});
```