add support for notifications of type 'warning'

This commit is contained in:
Géry Debongnie
2019-03-05 10:31:03 +01:00
parent fa8919b36b
commit 8926b8828f
7 changed files with 53 additions and 4 deletions
+11
View File
@@ -49,6 +49,17 @@ test("can be rendered", async () => {
expect(fixture.innerHTML).toMatchSnapshot();
});
test("can be rendered (type = warning)", async () => {
const notif = makeNotification({
title: "title",
message: "message",
type: "warning"
});
const navbar = new Notification(env, notif);
await navbar.mount(fixture);
expect(fixture.innerHTML).toMatchSnapshot();
});
test("can be closed by clicking on it (if sticky)", async () => {
env.addNotification({
title: "title",