diff options
author | Markus Doits <markus.doits@stellenticket.de> | 2016-04-10 21:37:18 +0200 |
---|---|---|
committer | Markus Doits <markus.doits@stellenticket.de> | 2016-04-11 11:01:46 +0200 |
commit | e96fd240c5911e18f43c62b20ae5f18600c3d793 (patch) | |
tree | 95c841184983fbc9df22d9481ff8a2197e8dc5b9 /spec | |
parent | 347e6ab774cd401e437450fc93504b78bf90d748 (diff) | |
download | pronto-hlint-e96fd240c5911e18f43c62b20ae5f18600c3d793.tar.gz pronto-hlint-e96fd240c5911e18f43c62b20ae5f18600c3d793.tar.zst pronto-hlint-e96fd240c5911e18f43c62b20ae5f18600c3d793.zip |
modify spec to check for .es6 liniting
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fixtures/test.git/git/index | bin | 137 -> 209 bytes | |||
-rw-r--r-- | spec/fixtures/test.git/git/logs/HEAD | 1 | ||||
-rw-r--r-- | spec/fixtures/test.git/git/logs/refs/heads/curly | 1 | ||||
-rw-r--r-- | spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd | 2 | ||||
-rw-r--r-- | spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b | 1 | ||||
-rw-r--r-- | spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 | bin | 0 -> 66 bytes | |||
-rw-r--r-- | spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 | bin | 0 -> 60 bytes | |||
-rw-r--r-- | spec/fixtures/test.git/git/refs/heads/curly | 2 | ||||
-rw-r--r-- | spec/fixtures/test.git/world.es6 | 5 | ||||
-rw-r--r-- | spec/pronto/eslint_spec.rb | 4 |
10 files changed, 13 insertions, 3 deletions
diff --git a/spec/fixtures/test.git/git/index b/spec/fixtures/test.git/git/index index 786f76d..0b50aa9 100644 --- a/spec/fixtures/test.git/git/index +++ b/spec/fixtures/test.git/git/index | |||
Binary files differ | |||
diff --git a/spec/fixtures/test.git/git/logs/HEAD b/spec/fixtures/test.git/git/logs/HEAD index 7e44d13..a4f13f8 100644 --- a/spec/fixtures/test.git/git/logs/HEAD +++ b/spec/fixtures/test.git/git/logs/HEAD | |||
@@ -11,3 +11,4 @@ e438134aac40ce86789d552f1bdada6582a987f6 85e04b1eb1a721d42db51d49e49dfeb8255a574 | |||
11 | 85e04b1eb1a721d42db51d49e49dfeb8255a5741 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674164 +0200 commit (amend): Initial commit | 11 | 85e04b1eb1a721d42db51d49e49dfeb8255a5741 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674164 +0200 commit (amend): Initial commit |
12 | 931004157205727e6a47586feaed0473c6ddbd66 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 checkout: moving from master to curly | 12 | 931004157205727e6a47586feaed0473c6ddbd66 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 checkout: moving from master to curly |
13 | 931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) | 13 | 931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) |
14 | 3a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b Markus Doits <markus.doits@stellenticket.de> 1460316876 +0200 commit: add es6 file | ||
diff --git a/spec/fixtures/test.git/git/logs/refs/heads/curly b/spec/fixtures/test.git/git/logs/refs/heads/curly index dfb7828..11582e5 100644 --- a/spec/fixtures/test.git/git/logs/refs/heads/curly +++ b/spec/fixtures/test.git/git/logs/refs/heads/curly | |||
@@ -1,2 +1,3 @@ | |||
1 | 0000000000000000000000000000000000000000 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 branch: Created from HEAD | 1 | 0000000000000000000000000000000000000000 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 branch: Created from HEAD |
2 | 931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) | 2 | 931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) |
3 | 3a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b Markus Doits <markus.doits@stellenticket.de> 1460316876 +0200 commit: add es6 file | ||
diff --git a/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd b/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd new file mode 100644 index 0000000..b4fe9ea --- /dev/null +++ b/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd | |||
@@ -0,0 +1,2 @@ | |||
1 | xA | ||
2 | 0E]dؘb2`L[>ivpv\i=>CJǮ$4O)8$fi>$Z$.LТi+e8htn*ð:+EwYN` ]EhV_AU61CW \ No newline at end of file | ||
diff --git a/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b b/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b new file mode 100644 index 0000000..1d5c313 --- /dev/null +++ b/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b | |||
@@ -0,0 +1 @@ | |||
xA aלb& 1ƅ[1ZSo<^ylлtj=,Zlbbťi}RZ6)Ѿ-fao&#S[\Vx*ܗUGuWdvs䗴Cm ƀpֽ֊MuRqP \ No newline at end of file | |||
diff --git a/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 b/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 new file mode 100644 index 0000000..db2600a --- /dev/null +++ b/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 | |||
Binary files differ | |||
diff --git a/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 b/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 new file mode 100644 index 0000000..b0bc9b3 --- /dev/null +++ b/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 | |||
Binary files differ | |||
diff --git a/spec/fixtures/test.git/git/refs/heads/curly b/spec/fixtures/test.git/git/refs/heads/curly index ce18055..21919cd 100644 --- a/spec/fixtures/test.git/git/refs/heads/curly +++ b/spec/fixtures/test.git/git/refs/heads/curly | |||
@@ -1 +1 @@ | |||
3a6237c5feacca9a37c36bec5110a1eeb9da703b | 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b | ||
diff --git a/spec/fixtures/test.git/world.es6 b/spec/fixtures/test.git/world.es6 new file mode 100644 index 0000000..2d1b996 --- /dev/null +++ b/spec/fixtures/test.git/world.es6 | |||
@@ -0,0 +1,5 @@ | |||
1 | function HelloWorld(name) | ||
2 | { | ||
3 | if (foo) foo++; | ||
4 | alert(name); | ||
5 | } | ||
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb index 29d46e4..7af0aa2 100644 --- a/spec/pronto/eslint_spec.rb +++ b/spec/pronto/eslint_spec.rb | |||
@@ -17,12 +17,12 @@ module Pronto | |||
17 | it { should == [] } | 17 | it { should == [] } |
18 | end | 18 | end |
19 | 19 | ||
20 | context 'patches with a four warnings' do | 20 | context 'patches with a four and a five warnings' do |
21 | include_context 'test repo' | 21 | include_context 'test repo' |
22 | 22 | ||
23 | let(:patches) { repo.diff('master') } | 23 | let(:patches) { repo.diff('master') } |
24 | 24 | ||
25 | its(:count) { should == 4 } | 25 | its(:count) { should == 9 } |
26 | its(:'first.msg') { should == "Expected { after 'if' condition." } | 26 | its(:'first.msg') { should == "Expected { after 'if' condition." } |
27 | end | 27 | end |
28 | end | 28 | end |