feat(native): NotifyEvent types
This commit is contained in:
1 parent
e54a5b6128
commit
8c84daec2b
5 files changed
+50
-8
No files matched your search
@@ -57,7 +57,7 @@ test('fs watch', { concurrency: false }, async t => {
|
||||
const defer = new Subject<void>();
|
||||
const subscription = watcher.subscribe(
|
||||
event => {
|
||||
if (event.type.remove) {
|
||||
if (typeof event.type === 'object' && 'rename' in event.type) {
|
||||
assert.deepEqual(event.paths, [fixture]);
|
||||
assert.deepEqual(event.type, {
|
||||
remove: {
|
||||
|
||||
Reference in new issue
Block a user