diff --git a/assets/pages/Container.spec.js b/assets/pages/Container.spec.js
index 3bb8f2df..1408baf7 100644
--- a/assets/pages/Container.spec.js
+++ b/assets/pages/Container.spec.js
@@ -102,4 +102,25 @@ describe("", () => {
`);
});
+
+ test("should render messages with filter", async () => {
+ const wrapper = shallowMount(Container, {
+ propsData: { id: "abc" }
+ });
+ sources["/api/logs/stream?id=abc"].emitOpen();
+ sources["/api/logs/stream?id=abc"].emitMessage({
+ data: `2019-06-11T10:55:42.459034602Z Foo bar`
+ });
+ sources["/api/logs/stream?id=abc"].emitMessage({
+ data: `2019-06-12T10:55:42.459034602Z This is a test `
+ });
+
+ wrapper.setData({ filter: "test" });
+
+ expect(wrapper.find("ul.events")).toMatchInlineSnapshot(`
+
+ - today at 10:55 AM This is a test <hi></hi>
+
+ `);
+ });
});