Skip to content

Commit c19ced0

Browse files
committed
Appease the hound.
1 parent 4013c96 commit c19ced0

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

spec/units/parser_spec.rb

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,23 @@
9696
command = stub_lazy_command
9797

9898
result = parse(tokens(
99-
[:WORD, ':echo'], [:SPACE], [:WORD, 'git'],
100-
[:LEFT_BRACE], [:COMMA], [:COMMA], [:WORD, 'sh'], [:COMMA], [:COMMA], [:RIGHT_BRACE],
101-
[:EOS],
99+
[:WORD, ':echo'], [:SPACE], [:WORD, 'git'], [:LEFT_BRACE],
100+
[:COMMA], [:COMMA], [:WORD, 'sh'], [:COMMA], [:COMMA],
101+
[:RIGHT_BRACE], [:EOS],
102102
))
103103

104104
expect(result).to eq command
105105
expect(Gitsh::Commands::LazyCommand).to have_received(:new).with([
106106
string(':echo'),
107107
composite([
108108
string('git'),
109-
brace_expansion([string(''), string(''), string('sh'), string(''), string('')]),
109+
brace_expansion([
110+
string(''),
111+
string(''),
112+
string('sh'),
113+
string(''),
114+
string(''),
115+
]),
110116
]),
111117
])
112118
end
@@ -137,7 +143,8 @@
137143
[:WORD, ':echo'], [:SPACE],
138144
[:WORD, '1'],
139145
[:LEFT_BRACE], [:WORD, '2'], [:COMMA], [:WORD, '3'], [:RIGHT_BRACE],
140-
[:LEFT_BRACE], [:WORD, '4'], [:COMMA], [:WORD, '5'], [:COMMA], [:WORD, '6'], [:RIGHT_BRACE],
146+
[:LEFT_BRACE], [:WORD, '4'], [:COMMA], [:WORD, '5'], [:COMMA],
147+
[:WORD, '6'], [:RIGHT_BRACE],
141148
[:EOS],
142149
))
143150

@@ -149,7 +156,7 @@
149156
composite([
150157
brace_expansion([string('2'), string('3')]),
151158
brace_expansion([string('4'), string('5'), string('6')]),
152-
])
159+
]),
153160
]),
154161
])
155162
end
@@ -169,7 +176,7 @@
169176
string('{'),
170177
string(1),
171178
string('}'),
172-
])
179+
]),
173180
])
174181
end
175182

@@ -187,7 +194,7 @@
187194
string('{'),
188195
string(''),
189196
string('}'),
190-
])
197+
]),
191198
])
192199
end
193200

0 commit comments

Comments
 (0)