Bug 1361270 - Update test; r=nchevobbe

MozReview-Commit-ID: 26l7AlZOWO0

--HG--
extra : rebase_source : 0c76f11b746d3aedececc644d5620f80bd3b138a
This commit is contained in:
Jan Odvarko 2017-05-02 17:27:25 +02:00
Родитель 46d58cb8f8
Коммит 44dac424c3
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -58,6 +58,14 @@ describe("Searching in grips", () => {
expect(getAllMessages(store.getState()).size).toEqual(1);
});
});
describe("Search in logs with net messages", () => {
it("matches on network messages", () => {
store.dispatch(actions.filterToggle("net"));
store.dispatch(actions.filterTextSet("get"));
expect(getAllMessages(store.getState()).size).toEqual(1);
});
});
});
function prepareBaseStore() {
@ -70,6 +78,7 @@ function prepareBaseStore() {
"console.log('myregex', /a.b.c/)",
"console.map('mymap')",
"console.log('myobject', {red: 'redValue', green: 'greenValue', blue: 'blueValue'});",
"GET request",
]);
return store;