mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[vinyl] Add test for File.isVinyl
This commit is contained in:
@@ -121,6 +121,19 @@ describe('File', () => {
|
||||
|
||||
});
|
||||
|
||||
describe('File.isVinyl()', () => {
|
||||
it('should return true when an object is a Vinyl file', done => {
|
||||
var file = new File();
|
||||
File.isVinyl(file).should.equal(true);
|
||||
done();
|
||||
});
|
||||
|
||||
it('should return false when an object is not a Vinyl file', done => {
|
||||
File.isVinyl({}).should.equal(false);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('isBuffer()', () => {
|
||||
it('should return true when the contents are a Buffer', done => {
|
||||
var val = new Buffer("test");
|
||||
|
||||
Reference in New Issue
Block a user