]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
modify spec to check for .es6 liniting
authorMarkus Doits <markus.doits@stellenticket.de>
Sun, 10 Apr 2016 19:37:18 +0000 (21:37 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Mon, 11 Apr 2016 09:01:46 +0000 (11:01 +0200)
spec/fixtures/test.git/git/index
spec/fixtures/test.git/git/logs/HEAD
spec/fixtures/test.git/git/logs/refs/heads/curly
spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd [new file with mode: 0644]
spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b [new file with mode: 0644]
spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 [new file with mode: 0644]
spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 [new file with mode: 0644]
spec/fixtures/test.git/git/refs/heads/curly
spec/fixtures/test.git/world.es6 [new file with mode: 0644]
spec/pronto/eslint_spec.rb

index 786f76dc80f82a380371913e187b8b4b4c2dcc37..0b50aa9dba5e1558b06b0be6111dfb76abf9adc6 100644 (file)
Binary files a/spec/fixtures/test.git/git/index and b/spec/fixtures/test.git/git/index differ
index 7e44d13cfc9d7446b64ec61addc680e708494d3b..a4f13f80294260ff6a0b2e94923b272d2e049e01 100644 (file)
@@ -11,3 +11,4 @@ e438134aac40ce86789d552f1bdada6582a987f6 85e04b1eb1a721d42db51d49e49dfeb8255a574
 85e04b1eb1a721d42db51d49e49dfeb8255a5741 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674164 +0200    commit (amend): Initial commit
 931004157205727e6a47586feaed0473c6ddbd66 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200    checkout: moving from master to curly
 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)
+3a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b Markus Doits <markus.doits@stellenticket.de> 1460316876 +0200        commit: add es6 file
index dfb7828eb3a70f1e1859999bcaee4ff7aeb583e0..11582e5568f46b61579485709ef4cc8373f044d0 100644 (file)
@@ -1,2 +1,3 @@
 0000000000000000000000000000000000000000 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200    branch: Created from HEAD
 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)
+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 (file)
index 0000000..b4fe9ea
--- /dev/null
@@ -0,0 +1,2 @@
+x\ 1¥\8eA
+Â0\10E]ç\14³\17d\92Ø\98\82\88\v·\1eb2\99`°µÒLÑã[½\82»ÿ>\9fÇçi\1c«\82\vv£³\bp\91\98Øvè\\89i\9f=\vÅ>±CJÉúÒÇ®\88$4O\9aå¡à)8\7fàµ$fêiÍ>$áÎZ$».ûL\aôÉТ·i\86+Í÷¥ÁeªÚà8þh\97¿tn*ð:+ßEwYN`÷\ 1½\r]\f°E\87hø÷Vå_\8f¡\9c¡ÔAàUõ\ 6Ò\ 2´¥\94ú6\1f1CW\10
\ 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 (file)
index 0000000..1d5c313
--- /dev/null
@@ -0,0 +1 @@
+x\ 1¥ÎA\ e \10\85\9cbö&\r\14\18 1Æ\85[\ f1\fÓØØZSèý­½\82»÷o¾<^æylлtj«\b\84\90=\a,ZÛlb\ e\91\9dÉ\11Åb\8c\8eÅ¥Áiî}R\1fZåÝÀ\12ö6°\1f\84\98)Ѿ-fao\8c&#\92S¡°[\8a¶ö\VxÐúÚ*Ü\97±U¸ÌGuåW·Úd\9avsä\97´®È\15\8cCm\rÆ\80pÖ½Ö\8a\8f·Mþu\14\95\ 2R\11\86q\12õ\ 5Õ\97
\ 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 (file)
index 0000000..db2600a
Binary files /dev/null and b/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 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 (file)
index 0000000..b0bc9b3
Binary files /dev/null and b/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 differ
index ce180558cb22e29547623734ba43a7562a462b9a..21919cdbc3bb0562508a946dcbbf77981424754f 100644 (file)
@@ -1 +1 @@
-3a6237c5feacca9a37c36bec5110a1eeb9da703b
+37018e429ad00f0ec961bd218e3dfa6a6e8cc05b
diff --git a/spec/fixtures/test.git/world.es6 b/spec/fixtures/test.git/world.es6
new file mode 100644 (file)
index 0000000..2d1b996
--- /dev/null
@@ -0,0 +1,5 @@
+function HelloWorld(name)
+{
+    if (foo) foo++;
+    alert(name);
+}
index 29d46e481c78e21576870693ffe6b3f4dd8525da..7af0aa25f20030a5ed97e7e0da8812f74bfd208b 100644 (file)
@@ -17,12 +17,12 @@ module Pronto
         it { should == [] }
       end
 
-      context 'patches with a four warnings' do
+      context 'patches with a four and a five warnings' do
         include_context 'test repo'
 
         let(:patches) { repo.diff('master') }
 
-        its(:count) { should == 4 }
+        its(:count) { should == 9 }
         its(:'first.msg') { should == "Expected { after 'if' condition." }
       end
     end