Skip to content

Commit 528d105

Browse files
committed
Chore: trivial fix
1 parent 693261b commit 528d105

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

test/common.js

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -129,112 +129,95 @@ describe("[common]", () => {
129129
it("Node API", async () => {
130130
await nodeApi(null)
131131
assert(result() == null)
132-
}
133-
)
132+
})
134133
})
135134

136135
describe("should run a task by npm (check an environment variable):", () => {
137136
it("Node API", async () => {
138137
await nodeApi("test-task:package-config")
139138
assert(result() === "OK")
140-
}
141-
)
139+
})
142140

143141
it("npm-run-all command", async () => {
144142
await runAll(["test-task:package-config"])
145143
assert(result() === "OK")
146-
}
147-
)
144+
})
148145

149146
it("run-s command", async () => {
150147
await runSeq(["test-task:package-config"])
151148
assert(result() === "OK")
152-
}
153-
)
149+
})
154150

155151
it("run-p command", async () => {
156152
await runPar(["test-task:package-config"])
157153
assert(result() === "OK")
158-
}
159-
)
154+
})
160155
})
161156

162157
describe("stdin can be used in tasks:", () => {
163158
it("Node API", async () => {
164159
await nodeApi("test-task:stdin")
165160
assert(result().trim() === "STDIN")
166-
}
167-
)
161+
})
168162

169163
it("npm-run-all command", async () => {
170164
await runAll(["test-task:stdin"])
171165
assert(result().trim() === "STDIN")
172-
}
173-
)
166+
})
174167

175168
it("run-s command", async () => {
176169
await runSeq(["test-task:stdin"])
177170
assert(result().trim() === "STDIN")
178-
}
179-
)
171+
})
180172

181173
it("run-p command", async () => {
182174
await runPar(["test-task:stdin"])
183175
assert(result().trim() === "STDIN")
184-
}
185-
)
176+
})
186177
})
187178

188179
describe("stdout can be used in tasks:", () => {
189180
it("Node API", async () => {
190181
await nodeApi("test-task:stdout")
191182
assert(result() === "STDOUT")
192-
}
193-
)
183+
})
194184

195185
it("npm-run-all command", async () => {
196186
await runAll(["test-task:stdout"])
197187
assert(result() === "STDOUT")
198-
}
199-
)
188+
})
200189

201190
it("run-s command", async () => {
202191
await runSeq(["test-task:stdout"])
203192
assert(result() === "STDOUT")
204-
}
205-
)
193+
})
206194

207195
it("run-p command", async () => {
208196
await runPar(["test-task:stdout"])
209197
assert(result() === "STDOUT")
210-
}
211-
)
198+
})
212199
})
213200

214201
describe("stderr can be used in tasks:", () => {
215202
it("Node API", async () => {
216203
await nodeApi("test-task:stderr")
217204
assert(result() === "STDERR")
218-
}
219-
)
205+
})
220206

221207
it("npm-run-all command", async () => {
222208
await runAll(["test-task:stderr"])
223209
assert(result() === "STDERR")
224-
}
225-
)
210+
})
226211

227212
it("run-s command", async () => {
228213
await runSeq(["test-task:stderr"])
229214
assert(result() === "STDERR")
230-
}
231-
)
215+
})
232216

233217
it("run-p command", async () => {
234218
await runPar(["test-task:stderr"])
235219
assert(result() === "STDERR")
236-
}
237-
)
220+
})
238221
})
239222

240223
describe("should be able to use `restart` built-in task:", () => {

0 commit comments

Comments
 (0)