forked from vim-test/vim-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjasmine_spec.vim
63 lines (45 loc) · 1.15 KB
/
jasmine_spec.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
source spec/support/helpers.vim
describe "Jasmine"
before
cd spec/fixtures/jasmine
end
after
call Teardown()
cd -
end
it "runs nearest tests"
view +2 spec/normal_spec.js
TestNearest
Expect g:test#last_command == 'jasmine spec/normal_spec.js --filter=''Addition adds two numbers'''
end
it "runs file tests"
view spec/normal_spec.js
TestFile
Expect g:test#last_command == 'jasmine spec/normal_spec.js'
end
it "runs test suites"
view spec/normal_spec.js
TestSuite
Expect g:test#last_command == 'jasmine'
end
it "is case insensitive about the filename"
view spec/normalSpec.js
TestFile
Expect g:test#last_command == 'jasmine spec/normalSpec.js'
end
it "doesn't recognize files that don't end with 'spec'"
view spec/normal.js
TestFile
Expect exists('g:test#last_command') == 0
end
it "runs CoffeeScript"
view spec/normal_spec.coffee
TestFile
Expect g:test#last_command == 'jasmine spec/normal_spec.coffee'
end
it "runs React"
view spec/normal_spec.jsx
TestFile
Expect g:test#last_command == 'jasmine spec/normal_spec.jsx'
end
end