Skip to content

Commit 7ff4d6f

Browse files
committed
adds test for check callback
1 parent 732a73c commit 7ff4d6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lockfile/lockfile-tests.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ var path: string;
99
var opts: lockfile.Options;
1010
var callback: (err: Error) => {
1111

12+
};
13+
var callback2: (err: Error, isLocked: boolean) => {
14+
1215
};
1316

1417
opts = {
@@ -25,7 +28,7 @@ lockfile.lockSync(path, opts);
2528
lockfile.unlock(path, callback);;
2629
lockfile.unlockSync(path);
2730

28-
lockfile.check(path, opts, callback);
29-
lockfile.check(path, callback);
31+
lockfile.check(path, opts, callback2);
32+
lockfile.check(path, callback2);
3033

3134
bool = lockfile.checkSync(path, opts);

0 commit comments

Comments
 (0)