зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2df0136940
Коммит
02618be077
|
@ -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: {},
|
||||
|
|
Загрузка…
Ссылка в новой задаче