Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 5a9067b

Browse files
committed
Change test code
1 parent 1e2d86b commit 5a9067b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/tests.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ ctx.describe('Progress report test', (report) => new Promise((resolve) => {
107107
let log = []
108108

109109
p1.onProgress = (written, total) => {
110-
log.push(<Info key={`progress = ${written} bytes / ${total} bytes`}/>)
110+
report(<Info key={`progress = ${written} bytes / ${total} bytes`}/>)
111111
if(written === total)
112-
log.push(<Assert key="progress goes to 100%" expect={written} actual={total}/>)
113-
report(...log)
112+
report(<Assert key="progress goes to 100%" expect={written} actual={total}/>)
114113
resolve()
115114
}
116115

0 commit comments

Comments
 (0)