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

Commit e3847e9

Browse files
committed
fixed argument passed to parse
1 parent 57ba207 commit e3847e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mixins/duration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export default class Duration {
4343
return magnitude * multiplier
4444
}
4545
}
46+
4647
async sleep (ms: number) { return new Promise(resolve => setTimeout(resolve, ms)) }
4748

4849
async wait () {
49-
let ms = this.parse(this.cmd.duration)
50-
let resolved = await this.sleep(ms)
50+
let resolved = await this.sleep(this.parse(this.cmd.flags.duration))
5151
console.log('operation did not complete in provided duration')
5252
return resolved
5353
}

0 commit comments

Comments
 (0)