add different view types

This commit is contained in:
Géry Debongnie
2019-03-06 17:36:22 +01:00
parent 4fe7745a8a
commit 4b02b74440
13 changed files with 124 additions and 17 deletions
@@ -38,3 +38,15 @@ test("display a warning if client action is not in registry", async () => {
expect(notifs.length).toBe(1);
expect(notifs[0].type).toBe("warning");
});
test("display a warning if view is not in registry", async () => {
const data = await makeTestData();
data.viewRegistry = new Registry();
const testEnv = makeTestEnv(data);
await testEnv.store.doAction(250);
const notifs = testEnv.store.state.notifications;
expect(notifs.length).toBe(1);
expect(notifs[0].type).toBe("warning");
});