StopButton.test.ts 368 B

12345678910
  1. import StopButton from "../../src/Classes/Buttons/StopButton";
  2. describe("Button that stops pagination", () => {
  3. test("should initialize with action that equals to minus one and disableWhen that equals to minus one.", () => {
  4. const button = new StopButton();
  5. expect(button.action).toBe(-1);
  6. expect(button.disableWhen).toBe(-1);
  7. });
  8. });