rsi.cli
Version:
The swiss army knife for RSI related tasks.
15 lines (12 loc) • 357 B
text/typescript
import { printHelp } from "./index";
// Sets spies on console object to make it possible to convert them into test failures.
const spyLog = jest.spyOn( console, 'log' );
beforeEach( () => {
spyLog.mockReset();
});
describe("commands index", () => {
it("should print help", () => {
printHelp();
expect( spyLog ).toHaveBeenCalled();
})
})