Bug 1499378 - Fix mocha test; r=bgrins.

A function was missing in the serviceContainer stub,
and the console.trace with params test needed a
Provider wrapper to work with the latest changes made
to the ObjectInspector.

Differential Revision: https://phabricator.services.mozilla.com/D8861

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2018-10-16 15:02:17 +00:00
Родитель 2df0136940
Коммит 02618be077
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -327,7 +327,10 @@ describe("ConsoleAPICall component:", () => {
it("render with arguments", () => {
const message = stubPreparedMessages.get(
"console.trace('bar', {'foo': 'bar'}, [1,2,3])");
const wrapper = render(ConsoleApiCall({ message, serviceContainer, open: true }));
// We need to wrap the ConsoleApiElement in a Provider in order for the
// ObjectInspector to work.
const wrapper = render(Provider({ store: setupStore() },
ConsoleApiCall({ message, serviceContainer, open: true })));
const filepath = "http://example.com/browser/devtools/client/webconsole/" +
"test/fixtures/stub-generators/test-console-api.html";

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

@ -5,6 +5,7 @@
module.exports = {
attachRefToHud: () => {},
canRewind: () => false,
emitNewMessage: () => {},
hudProxy: {
client: {},