thelounge/test/plugins/inputs/indexTest.ts
Max Leiter 3de58c53b4
[ts-migrate][test] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:49:33 -07:00

20 lines
559 B
TypeScript

"use strict";
import {expect} from "chai";
import inputs from "../../../src/plugins/inputs";
describe("inputs", function () {
describe(".getCommands", function () {
it("should return a non-empty array", function () {
expect(inputs.getCommands()).to.be.an("array").that.is.not.empty;
});
it("should only return strings with no whitespaces and starting with /", function () {
inputs.getCommands().forEach((command) => {
expect(command).to.be.a("string").that.does.not.match(/\s/);
expect(command[0]).to.equal("/");
});
});
});
});