tor-browser

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

components-compatibility-UnsupportedBrowserItem.test.js (967B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 /**
      7 * Unit tests for the UnsupportedBrowserItem component.
      8 */
      9 
     10 const { shallow } = require("enzyme");
     11 const React = require("react");
     12 
     13 const BrowserItem = React.createFactory(
     14  require("resource://devtools/client/inspector/compatibility/components/UnsupportedBrowserItem.js")
     15 );
     16 
     17 describe("UnsupportedBrowserItem component", () => {
     18  it("renders the browser", () => {
     19    const item = shallow(
     20      BrowserItem({
     21        id: "firefox",
     22        name: "Firefox",
     23        version: "113",
     24        unsupportedVersions: [
     25          {
     26            status: "current",
     27            version: "113",
     28          },
     29          {
     30            status: "beta",
     31            version: "114",
     32          },
     33          {
     34            status: "release",
     35            version: "115",
     36          },
     37        ],
     38      })
     39    );
     40    expect(item).toMatchSnapshot();
     41  });
     42 });