mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
adds test for check callback
This commit is contained in:
@@ -9,6 +9,9 @@ var path: string;
|
||||
var opts: lockfile.Options;
|
||||
var callback: (err: Error) => {
|
||||
|
||||
};
|
||||
var callback2: (err: Error, isLocked: boolean) => {
|
||||
|
||||
};
|
||||
|
||||
opts = {
|
||||
@@ -25,7 +28,7 @@ lockfile.lockSync(path, opts);
|
||||
lockfile.unlock(path, callback);;
|
||||
lockfile.unlockSync(path);
|
||||
|
||||
lockfile.check(path, opts, callback);
|
||||
lockfile.check(path, callback);
|
||||
lockfile.check(path, opts, callback2);
|
||||
lockfile.check(path, callback2);
|
||||
|
||||
bool = lockfile.checkSync(path, opts);
|
||||
|
||||
Reference in New Issue
Block a user