summaryrefslogtreecommitdiffstats
path: root/devtools/client/application/test/node/components/service-workers/components_application_panel-RegistrationListEmpty.test.js
blob: 811535facc2104af6f4b8e987db8b85bfe71cc33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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");

const RegistrationListEmpty = createFactory(
  require("resource://devtools/client/application/src/components/service-workers/RegistrationListEmpty.js")
);

/**
 * Test for RegistrationListEmpty.js component
 */

describe("RegistrationListEmpty", () => {
  it("renders the expected snapshot", () => {
    const wrapper = shallow(RegistrationListEmpty({}));
    expect(wrapper).toMatchSnapshot();
  });
});