Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item.getContent is not a function #212

Open
ch-andrewrhyne opened this issue Jul 19, 2017 · 0 comments
Open

item.getContent is not a function #212

ch-andrewrhyne opened this issue Jul 19, 2017 · 0 comments

Comments

@ch-andrewrhyne
Copy link

ch-andrewrhyne commented Jul 19, 2017

image

This seems to happen if I call end on a WriteStream that was created by createWriteStream:

  import { createWriteStream } from 'graceful-fs';
  import mockFs from 'mock-fs';
 
  mockFs({
    '/chlogs/foobar': mockFs.directory({
      mode: 755
    })
  });

  const stream = createWriteStream('/chlogs/foobar', {
    flags: 'a'
  });

  stream.write('hello world');

  stream.end('');

I can reproduce this with both fs and graceful-fs in a mocha test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant