describe('#addCommand()', () => { it('should add command to the Shell', () => { const psCommand = new PSCommand(COMMAND); expect(ps.addCommand(COMMAND)).to.eventually.be.an('array') .that.include(psCommand); expect(ps.addCommand(psCommand)).to.eventually.be.an('array') .that.have.lengthOf(2); }); it('should fail adding command to the Shell', () => { expect(ps.addCommand('')).be.eventually.rejectedWith(PS_ARG_MISS_ERROR); expect(ps.addCommand({})).be.eventually.rejectedWith(PS_ARG_TYPE_ERROR); }); });