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

check if something is a buffer #109

Open
leore opened this issue Jun 19, 2014 · 2 comments
Open

check if something is a buffer #109

leore opened this issue Jun 19, 2014 · 2 comments

Comments

@leore
Copy link

leore commented Jun 19, 2014

Is there a way to check if something is a buffer?

expect(file).to.be.a('buffer') does not work.

Should has this functionality.

You can do file.should.be.instaceof(Buffer)
@apaleslimghost
Copy link

expect(file).to.be.a(Buffer) 

@EvanHahn
Copy link

This project wasn't being maintained so I forked this project and created expecting.js. It supports this kind of thing fully:

expect(file).to.be.a(Buffer)

Hope this can help!

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

3 participants