photoprism/frontend/tests/unit/common/notify_test.js
Michael Mayer 26560e8d71 Frontend: Upgrade Webpack from v4 to v5
Most frontend packages have been upgraded as part of this commit.
JS unit tests have been refactored alongside.
2021-07-12 19:25:37 +02:00

25 lines
461 B
JavaScript

import "../fixtures";
import Notify from "common/notify";
describe("common/alert", () => {
it("should call alert.info", () => {
Notify.info("message");
});
it("should call alert.warning", () => {
Notify.warn("message");
});
it("should call alert.error", () => {
Notify.error("message");
});
it("should call alert.success", () => {
Notify.success("message");
});
it("should call wait", () => {
Notify.wait();
});
});