File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 41
41
"tap-given" : " ^0.6.0" ,
42
42
"tslint" : " ^5.10.0" ,
43
43
"tslint-config-standard" : " ^7.1.0" ,
44
- "typescript" : " ^2.9.2" ,
45
- "util.promisify" : " ^1.0.0"
44
+ "typescript" : " ^2.9.2"
46
45
},
47
46
"scripts" : {
48
47
"pretest" : " eslint . && tsc --noEmit --pretty && tslint -t stylish -p . && echo markdownlint *.md" ,
Original file line number Diff line number Diff line change 2
2
3
3
process . env . TZ = 'GMT'
4
4
5
- const promisify = require ( 'util.promisify' )
6
-
7
- const delay = promisify ( setTimeout )
8
-
9
5
const FileTimestampStream = require ( '../lib/file-timestamp-stream' ) . FileTimestampStream
10
6
const mockFs = require ( '../mock/mock-fs' )
11
7
@@ -15,6 +11,12 @@ require('tap-given')(t)
15
11
const chai = require ( 'chai' )
16
12
chai . should ( )
17
13
14
+ function delay ( ms ) {
15
+ return new Promise ( ( resolve ) => {
16
+ setTimeout ( resolve , ms )
17
+ } )
18
+ }
19
+
18
20
Feature ( 'Test file-timestamp-stream module' , ( ) => {
19
21
Scenario ( 'Write lines to different files' , ( ) => {
20
22
let filename1
You can’t perform that action at this time.
0 commit comments