Skip to content

Commit

Permalink
test: update close method test
Browse files Browse the repository at this point in the history
This method returns a promise.

Closes #1123
  • Loading branch information
alan-agius4 committed Oct 8, 2021
1 parent 5c70fe3 commit 3d37a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ watcher.add(["new-file-2", "new-file-3", "**/other-file*"]);
watcher.unwatch("new-file*");

// Only needed if watching is `persistent: true`.
watcher.close();
(async () => {
await watcher.close();
})();

// One-liner
chokidar
Expand Down

0 comments on commit 3d37a7d

Please sign in to comment.