Added spy/expect snippets

Added more keywords
This commit is contained in:
Christopher H. Laco 2011-01-31 22:37:53 -05:00
parent 8e581a11c1
commit 760bb0eab5
3 changed files with 10 additions and 0 deletions

1
snippets/expect.snippet Normal file
View File

@ -0,0 +1 @@
expect( ${1} ).to${2}();

1
snippets/spy.snippet Normal file
View File

@ -0,0 +1 @@
spyOn( ${1:object}, '${2:method}' );

View File

@ -6,9 +6,17 @@ runtime! syntax/javascript.vim
syn case match
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not
syn keyword specDisabled xit xdescribe
syn keyword specSpys andCallThrough andReturn andThrow andCallFake callCount argsForCall mostRecentCall
syn keyword specAsync runs waits waitsFor
syn match specMatcher "to[A-Za-z0-9_]*"
syn keyword specjQuery loadFixtures readFixtures setFixtures sandbox clearCache cleanUp
hi def link specFunctions Special
hi def link specDisabled Error
hi def link specMatcher Special
hi def link specSpys Special
hi def link specAsync Special
hi def link specjQuery Special
let b:current_syntax = "jasmine"