kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
22 lines • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Common = require("./common");
const CLI = require("./cli");
const ReplExpect = require("./repl-expect");
class TestStringResponse {
constructor(param) {
this.param = param;
}
string() {
const { command, expect, exact } = this.param;
describe(`string response ${process.env.MOCHA_RUN_TARGET || ''}`, function () {
before(Common.before(this));
after(Common.after(this));
it('should return a string', () => CLI.command(command, this.app)
.then(ReplExpect.okWithString(expect, exact))
.catch(Common.oops(this, true)));
});
}
}
exports.TestStringResponse = TestStringResponse;
//# sourceMappingURL=string-response.js.map