|  | 
|  | 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP | 
|  | 2 | + | 
|  | 3 | +exports[`Banner matches snapshot (error, with dismiss) 1`] = ` | 
|  | 4 | +<div | 
|  | 5 | +  className="sc-jSMfEi iGEqwr" | 
|  | 6 | +> | 
|  | 7 | +  <div> | 
|  | 8 | +    <span | 
|  | 9 | +      dangerouslySetInnerHTML={ | 
|  | 10 | +        Object { | 
|  | 11 | +          "__html": "This is an error", | 
|  | 12 | +        } | 
|  | 13 | +      } | 
|  | 14 | +    /> | 
|  | 15 | +  </div> | 
|  | 16 | +  <button | 
|  | 17 | +    aria-label="dismiss" | 
|  | 18 | +    className="sc-bczRLJ sc-gKXOVf dOOknK dwyZcw" | 
|  | 19 | +    onClick={[Function]} | 
|  | 20 | +    severity="error" | 
|  | 21 | +  > | 
|  | 22 | +    <svg | 
|  | 23 | +      aria-hidden="true" | 
|  | 24 | +      focusable="false" | 
|  | 25 | +      height="15px" | 
|  | 26 | +      version="1.1" | 
|  | 27 | +      viewBox="0 0 15 15" | 
|  | 28 | +      width="15px" | 
|  | 29 | +    > | 
|  | 30 | +      <g | 
|  | 31 | +        fill="none" | 
|  | 32 | +        fillRule="evenodd" | 
|  | 33 | +        stroke="none" | 
|  | 34 | +        strokeWidth="1" | 
|  | 35 | +      > | 
|  | 36 | +        <g | 
|  | 37 | +          fill="currentColor" | 
|  | 38 | +          transform="translate(-302.000000, -18.000000)" | 
|  | 39 | +        > | 
|  | 40 | +          <g | 
|  | 41 | +            transform="translate(302.000000, 18.000000)" | 
|  | 42 | +          > | 
|  | 43 | +            <path | 
|  | 44 | +              d="M7.5,5.41522791 L12.0331524,0.579865364 C12.3077536,0.286957429 12.7165503,0.24816296 12.946282,0.493210121 L13.9861449,1.60239723 C14.2158766,1.84744439 14.1795068,2.28349422 13.9049056,2.57640216 L9.37175324,7.41176471 L13.9049056,12.2471273 C14.1795068,12.5400352 14.2158766,12.976085 13.9861449,13.2211322 L12.946282,14.3303193 C12.7165503,14.5753665 12.3077536,14.536572 12.0331524,14.243664 L7.5,9.4083015 L2.96684761,14.243664 C2.69224642,14.536572 2.2834497,14.5753665 2.05371799,14.3303193 L1.01385508,13.2211322 C0.784123363,12.976085 0.820493178,12.5400352 1.09509437,12.2471273 L5.62824676,7.41176471 L1.09509437,2.57640216 C0.820493178,2.28349422 0.784123363,1.84744439 1.01385508,1.60239723 L2.05371799,0.493210121 C2.2834497,0.24816296 2.69224642,0.286957429 2.96684761,0.579865364 L7.5,5.41522791 Z" | 
|  | 45 | +            /> | 
|  | 46 | +          </g> | 
|  | 47 | +        </g> | 
|  | 48 | +      </g> | 
|  | 49 | +    </svg> | 
|  | 50 | +  </button> | 
|  | 51 | +</div> | 
|  | 52 | +`; | 
|  | 53 | + | 
|  | 54 | +exports[`Banner matches snapshot (multiple messages, with dismiss) 1`] = ` | 
|  | 55 | +<div | 
|  | 56 | +  className="sc-jSMfEi lmuhoy" | 
|  | 57 | +> | 
|  | 58 | +  <div> | 
|  | 59 | +    <span | 
|  | 60 | +      className="sc-eCYdqJ EIRbC" | 
|  | 61 | +    > | 
|  | 62 | +      Warning:  | 
|  | 63 | +    </span> | 
|  | 64 | +    <div | 
|  | 65 | +      dangerouslySetInnerHTML={ | 
|  | 66 | +        Object { | 
|  | 67 | +          "__html": "[1 of 2]: This is warning one", | 
|  | 68 | +        } | 
|  | 69 | +      } | 
|  | 70 | +    /> | 
|  | 71 | +    <div | 
|  | 72 | +      dangerouslySetInnerHTML={ | 
|  | 73 | +        Object { | 
|  | 74 | +          "__html": "[2 of 2]: This is warning two", | 
|  | 75 | +        } | 
|  | 76 | +      } | 
|  | 77 | +    /> | 
|  | 78 | +  </div> | 
|  | 79 | +  <button | 
|  | 80 | +    aria-label="dismiss" | 
|  | 81 | +    className="sc-bczRLJ sc-gKXOVf dOOknK fGvwkl" | 
|  | 82 | +    onClick={[Function]} | 
|  | 83 | +    severity="warning" | 
|  | 84 | +  > | 
|  | 85 | +    <svg | 
|  | 86 | +      aria-hidden="true" | 
|  | 87 | +      focusable="false" | 
|  | 88 | +      height="15px" | 
|  | 89 | +      version="1.1" | 
|  | 90 | +      viewBox="0 0 15 15" | 
|  | 91 | +      width="15px" | 
|  | 92 | +    > | 
|  | 93 | +      <g | 
|  | 94 | +        fill="none" | 
|  | 95 | +        fillRule="evenodd" | 
|  | 96 | +        stroke="none" | 
|  | 97 | +        strokeWidth="1" | 
|  | 98 | +      > | 
|  | 99 | +        <g | 
|  | 100 | +          fill="currentColor" | 
|  | 101 | +          transform="translate(-302.000000, -18.000000)" | 
|  | 102 | +        > | 
|  | 103 | +          <g | 
|  | 104 | +            transform="translate(302.000000, 18.000000)" | 
|  | 105 | +          > | 
|  | 106 | +            <path | 
|  | 107 | +              d="M7.5,5.41522791 L12.0331524,0.579865364 C12.3077536,0.286957429 12.7165503,0.24816296 12.946282,0.493210121 L13.9861449,1.60239723 C14.2158766,1.84744439 14.1795068,2.28349422 13.9049056,2.57640216 L9.37175324,7.41176471 L13.9049056,12.2471273 C14.1795068,12.5400352 14.2158766,12.976085 13.9861449,13.2211322 L12.946282,14.3303193 C12.7165503,14.5753665 12.3077536,14.536572 12.0331524,14.243664 L7.5,9.4083015 L2.96684761,14.243664 C2.69224642,14.536572 2.2834497,14.5753665 2.05371799,14.3303193 L1.01385508,13.2211322 C0.784123363,12.976085 0.820493178,12.5400352 1.09509437,12.2471273 L5.62824676,7.41176471 L1.09509437,2.57640216 C0.820493178,2.28349422 0.784123363,1.84744439 1.01385508,1.60239723 L2.05371799,0.493210121 C2.2834497,0.24816296 2.69224642,0.286957429 2.96684761,0.579865364 L7.5,5.41522791 Z" | 
|  | 108 | +            /> | 
|  | 109 | +          </g> | 
|  | 110 | +        </g> | 
|  | 111 | +      </g> | 
|  | 112 | +    </svg> | 
|  | 113 | +  </button> | 
|  | 114 | +</div> | 
|  | 115 | +`; | 
|  | 116 | + | 
|  | 117 | +exports[`Banner matches snapshot (single message, no dismiss) 1`] = ` | 
|  | 118 | +<div | 
|  | 119 | +  className="sc-jSMfEi lmuhoy" | 
|  | 120 | +> | 
|  | 121 | +  <div> | 
|  | 122 | +    <span | 
|  | 123 | +      className="sc-eCYdqJ EIRbC" | 
|  | 124 | +    > | 
|  | 125 | +      Note:  | 
|  | 126 | +    </span> | 
|  | 127 | +    <span | 
|  | 128 | +      dangerouslySetInnerHTML={ | 
|  | 129 | +        Object { | 
|  | 130 | +          "__html": "This is a note", | 
|  | 131 | +        } | 
|  | 132 | +      } | 
|  | 133 | +    /> | 
|  | 134 | +  </div> | 
|  | 135 | +</div> | 
|  | 136 | +`; | 
0 commit comments