зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315242 - Part 5: Add a testcase for location in Evaluation Result. r=bgrins
This commit is contained in:
Родитель
711fe4b331
Коммит
456e0331df
|
@ -72,4 +72,13 @@ describe("EvaluationResult component:", () => {
|
|||
wrapper = render(EvaluationResult({ message}));
|
||||
expect(wrapper.find(".indent").prop("style").width).toBe(`0`);
|
||||
});
|
||||
|
||||
it("has location information", () => {
|
||||
const message = stubPreparedMessages.get("1 + @");
|
||||
const wrapper = render(EvaluationResult({ message }));
|
||||
|
||||
const locationLink = wrapper.find(`.message-location`);
|
||||
expect(locationLink.length).toBe(1);
|
||||
expect(locationLink.text()).toBe("debugger eval code:1:4");
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче