Skip to content

Commit

Permalink
added more js snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjtait committed Apr 20, 2017
1 parent 90ee843 commit 861abde
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .vim/UltiSnips/javascript.snippets
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
snippet des "Describe block" b
snippet desc "describe block" b
describe('$1', () => {
$2
});
endsnippet

snippet it "It block" b
snippet it "it block" b
it('$1', () => {
$2
});
endsnippet

snippet im "Import block" b
snippet import "import line" b
import $1 from '$2';
endsnippet

snippet before "beforeEach block" b
beforeEach(() => {
$1
});
endsnippet

snippet react "react class" b
import React from 'react';

class $1 extends React.Component {
render() {
return $2;
}
}

export default $1;
endsnippet

0 comments on commit 861abde

Please sign in to comment.