| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c2f686 commit 72a97b6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - require('../common'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | 3 | const PassThrough = require('stream').PassThrough; | |
| 4 | 4 | const assert = require('assert'); | |
| 5 | 5 | const inherits = require('util').inherits; | |
@@ -55,7 +55,7 @@ function addTest(sequences, expectedKeys) { | |||
| 55 | 55 | ||
| 56 | 56 | const addKeyIntervalTest = (sequences, expectedKeys, interval = 550, | |
| 57 | 57 | assertDelay = 550) => { | |
| 58 | - return (next) => () => { | ||
| 58 | + const fn = common.mustCall((next) => () => { | ||
| 59 | 59 | ||
| 60 | 60 | if (!Array.isArray(sequences)) { | |
| 61 | 61 | sequences = [ sequences ]; | |
@@ -84,7 +84,8 @@ const addKeyIntervalTest = (sequences, expectedKeys, interval = 550, | |||
| 84 | 84 | } | |
| 85 | 85 | }; | |
| 86 | 86 | emitKeys(sequences); | |
| 87 | - }; | ||
| 87 | + }); | ||
| 88 | + return fn; | ||
| 88 | 89 | }; | |
| 89 | 90 | ||
| 90 | 91 | // regular alphanumerics | |
| Back | FazBrowse Home | New Git URL |
0 commit comments