mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-03 19:41:22 +03:00
test(action): ✅ add master area tests
This commit is contained in:
parent
da9c10fc16
commit
429c9af212
@ -229,4 +229,54 @@ describe("action", () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("master area", () => {
|
||||
let fakeEngine: Engine;
|
||||
|
||||
beforeEach(() => {
|
||||
fakeEngine = createMock<Engine>({
|
||||
showNotification: jest.fn(),
|
||||
});
|
||||
});
|
||||
|
||||
describe("increase windows count", () => {
|
||||
it("shows a note that there is no master area in general case", () => {
|
||||
const action = new Action.IncreaseMasterAreaWindowCount(fakeEngine);
|
||||
|
||||
action.execute();
|
||||
|
||||
expect(fakeEngine.showNotification).toBeCalledWith("No Master Area");
|
||||
});
|
||||
});
|
||||
|
||||
describe("decrease windows count", () => {
|
||||
it("shows a note that there is no master area in general case", () => {
|
||||
const action = new Action.DecreaseMasterAreaWindowCount(fakeEngine);
|
||||
|
||||
action.execute();
|
||||
|
||||
expect(fakeEngine.showNotification).toBeCalledWith("No Master Area");
|
||||
});
|
||||
});
|
||||
|
||||
describe("increase size", () => {
|
||||
it("shows a note that there is no master area in general case", () => {
|
||||
const action = new Action.IncreaseLayoutMasterAreaSize(fakeEngine);
|
||||
|
||||
action.execute();
|
||||
|
||||
expect(fakeEngine.showNotification).toBeCalledWith("No Master Area");
|
||||
});
|
||||
});
|
||||
|
||||
describe("decrease size", () => {
|
||||
it("shows a note that there is no master area in general case", () => {
|
||||
const action = new Action.DecreaseLayoutMasterAreaSize(fakeEngine);
|
||||
|
||||
action.execute();
|
||||
|
||||
expect(fakeEngine.showNotification).toBeCalledWith("No Master Area");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user