Added spy/expect snippets
Added more keywords
This commit is contained in:
parent
8e581a11c1
commit
760bb0eab5
1
snippets/expect.snippet
Normal file
1
snippets/expect.snippet
Normal file
@ -0,0 +1 @@
|
|||||||
|
expect( ${1} ).to${2}();
|
1
snippets/spy.snippet
Normal file
1
snippets/spy.snippet
Normal file
@ -0,0 +1 @@
|
|||||||
|
spyOn( ${1:object}, '${2:method}' );
|
@ -6,9 +6,17 @@ runtime! syntax/javascript.vim
|
|||||||
|
|
||||||
syn case match
|
syn case match
|
||||||
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not
|
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 match specMatcher "to[A-Za-z0-9_]*"
|
||||||
|
syn keyword specjQuery loadFixtures readFixtures setFixtures sandbox clearCache cleanUp
|
||||||
|
|
||||||
hi def link specFunctions Special
|
hi def link specFunctions Special
|
||||||
|
hi def link specDisabled Error
|
||||||
hi def link specMatcher Special
|
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"
|
let b:current_syntax = "jasmine"
|
||||||
|
Loading…
Reference in New Issue
Block a user