Code coverage report for lib\streams\CustomStream.js

Statements: 100% (10 / 10)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (10 / 10)      Ignored: none     

All files » lib\streams\ » CustomStream.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  1   1 3 2 2 2   1     1 1   1  
'use strict';
var BaseStream = require('./BaseStream.js');
 
var CustomStream = function CustomStream(name) {
    if (this instanceof CustomStream) {
        this.init();
        this.name = name;
        return this;
    }
    return new CustomStream(name);
};
 
CustomStream.prototype = new BaseStream();
CustomStream.prototype.constructor = CustomStream;
 
module.exports = CustomStream;