summaryrefslogtreecommitdiffstats
path: root/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap
blob: 4f3e4850840281979f646a88d6121b341f3540f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ManifestColorItem does not strip translucent alpha from the displayed color 1`] = `
<ManifestItem
  label="foo"
>
  <div
    className="manifest-item__color"
    style={
      Object {
        "--color-value": "#00FF00FA",
      }
    }
  >
    #00FF00FA
  </div>
</ManifestItem>
`;

exports[`ManifestColorItem renders the expected snapshot for a populated color item 1`] = `
<ManifestItem
  label="foo"
>
  <div
    className="manifest-item__color"
    style={
      Object {
        "--color-value": "#ff0000",
      }
    }
  >
    #ff0000
  </div>
</ManifestItem>
`;

exports[`ManifestColorItem renders the expected snapshot for an empty color item 1`] = `
<ManifestItem
  label="foo"
/>
`;

exports[`ManifestColorItem strips opaque alpha from the displayed color 1`] = `
<ManifestItem
  label="foo"
>
  <div
    className="manifest-item__color"
    style={
      Object {
        "--color-value": "#00FF00",
      }
    }
  >
    #00FF00
  </div>
</ManifestItem>
`;