Juul / tail-stream

Like `tail -f` but a stream. Like fs.createReadStream but keeps reading as the file grows.
Other
33 stars 13 forks source link

add tests for append, rename, and truncate #4

Closed msimerson closed 9 years ago

msimerson commented 9 years ago
$ npm test

> tail-stream@0.2.1 test /Users/matt/Documents/git/efolder/tail-stream
> mocha

  tail-stream
    file is appended
      ✓ detects appends (73ms)
    file is rotated
      ✓ detects rotation (56ms)
    file is truncated
      ✓ truncation is detected (52ms)

  tail-stream all events
    - has all events

  3 passing (200ms)
  1 pending