tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

components_application_panel-ManifestEmpty.test.js (579B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 // Import libs
      7 const { shallow } = require("enzyme");
      8 const { createFactory } = require("react");
      9 
     10 const ManifestEmpty = createFactory(
     11  require("resource://devtools/client/application/src/components/manifest/ManifestEmpty.js")
     12 );
     13 
     14 /**
     15 * Test for ManifestEmpty component
     16 */
     17 
     18 describe("ManifestEmpty", () => {
     19  it("renders the expected snapshot", () => {
     20    const wrapper = shallow(ManifestEmpty({}));
     21    expect(wrapper).toMatchSnapshot();
     22  });
     23 });