{ state: {} events: [ { kind: "modify-data-any", paths: ["/watch/file"], time: 1 } { kind: "access-close-write", paths: ["/watch/file"], time: 2 } { kind: "modify-data-any", paths: ["/watch/file"], time: 3 } { kind: "access-close-write", paths: ["/watch/file"], time: 4 } ] expected: { queues: { /watch/file: { events: [ { kind: "modify-data-any", paths: ["*"], time: 1 } { kind: "access-close-write", paths: ["*"], time: 2 } { kind: "modify-data-any", paths: ["*"], time: 3 } { kind: "access-close-write", paths: ["*"], time: 4 } ] } } events: { short: [] long: [ { kind: "modify-data-any", paths: ["/watch/file"], time: 3 } { kind: "access-close-write", paths: ["/watch/file"], time: 4 } ] } } }