adds test for check callback

This commit is contained in:
Daniel Beckwith
2015-06-21 14:28:30 -04:00
parent 732a73c1b1
commit 7ff4d6f0c5
+5 -2
View File
@@ -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);