Last active
January 10, 2017 22:19
-
-
Save peabnuts123/9f0015793fdb4201d8df to your computer and use it in GitHub Desktop.
Visual Studio CodeSnippet for JavaScript. Jasmine test declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>Jasmine Test</Title> | |
<Author>Jeff Andrews</Author> | |
<Description>Creates an 'it' block with a name, and basic comments</Description> | |
<HelpUrl> | |
</HelpUrl> | |
<Shortcut>it</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>testName</ID> | |
<ToolTip>Name of test</ToolTip> | |
<Default>with some condition causes some kind of outcome</Default> | |
<Function> | |
</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="JavaScript"> | |
<![CDATA[it("$testName$", function () { | |
//setup | |
//test | |
});]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment