diff options
Diffstat (limited to 'devtools/client/application/test/node/components/components_application_panel-App.test.js')
-rw-r--r-- | devtools/client/application/test/node/components/components_application_panel-App.test.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devtools/client/application/test/node/components/components_application_panel-App.test.js b/devtools/client/application/test/node/components/components_application_panel-App.test.js new file mode 100644 index 0000000000..fb003be26e --- /dev/null +++ b/devtools/client/application/test/node/components/components_application_panel-App.test.js @@ -0,0 +1,26 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +// Import libs +const { shallow } = require("enzyme"); +const { createFactory } = require("react"); + +// Import & init localization +const FluentReact = require("resource://devtools/client/shared/vendor/fluent-react.js"); +const LocalizationProvider = createFactory(FluentReact.LocalizationProvider); + +// Import component +const App = createFactory( + require("resource://devtools/client/application/src/components/App.js") +); + +describe("App", () => { + it("renders the expected snapshot", () => { + const wrapper = shallow( + LocalizationProvider({ bundles: [] }, App({})) + ).dive(); // dive to bypass the LocalizationProvider wrapper + expect(wrapper).toMatchSnapshot(); + }); +}); |