correct default props usage #103
pull_request.yml
on: pull_request
Unit tests
28s
Lint
23s
Annotations
2 errors
packages/layer-selector/src/LayerSelector.test.jsx > LayerSelector tests > LayerSelector snapshot:
packages/layer-selector/src/LayerSelector.test.jsx#L19
Error: Snapshot `LayerSelector tests > LayerSelector snapshot 1` mismatched
- Expected
+ Received
<DocumentFragment>
<div>
<div
- class="layer-selector--layers"
+ aria-haspopup="true"
+ class="layer-selector"
>
- <div
- class="layer-selector-item radio checkbox"
+ <input
+ alt="layers"
+ class="layer-selector__toggle"
+ src="/packages/layer-selector/src/layers.svg"
+ type="image"
+ />
+ <form
+ class="layer-selector--hidden"
>
- <label
- class="layer-selector--item"
+ <div
+ class="layer-selector--layers"
>
- <input
- checked=""
- name="baselayer"
- type="radio"
- value="Lite"
- />
- <span
- class="layer-selector-item--text"
+ <div
+ class="layer-selector-item radio checkbox"
>
- Lite
- </span>
- </label>
- </div>
- <div
- class="layer-selector-item radio checkbox"
- >
- <label
- class="layer-selector--item"
- >
- <input
- name="baselayer"
- type="radio"
- value="Terrain"
- />
- <span
- class="layer-selector-item--text"
+ <label
+ class="layer-selector--item"
+ >
+ <input
+ checked=""
+ name="baselayer"
+ type="radio"
+ value="Lite"
+ />
+ <span
+ class="layer-selector-item--text"
+ >
+ Lite
+ </span>
+ </label>
+ </div>
+ <div
+ class="layer-selector-item radio checkbox"
>
- Terrain
- </span>
- </label>
- </div>
- <div
- class="layer-selector-item radio checkbox"
- >
- <label
- class="layer-selector--item"
- >
- <input
- name="baselayer"
- type="radio"
- value="Topo"
- />
- <span
- class="layer-selector-item--text"
+ <label
+ class="layer-selector--item"
+ >
+ <input
+ name="baselayer"
+ type="radio"
+ value="Terrain"
+ />
+ <span
+ class="layer-selector-item--text"
+ >
+ Terrain
+ </span>
+ </label>
+ </div>
+ <div
+ class="layer-selector-item radio checkbox"
>
- Topo
- </span>
- </label>
- </div>
- <div
- class="layer-selector-item radio checkbox"
- >
- <label
- class="layer-selector--item"
- >
- <input
- name="baselayer"
- type="radio"
- value="Color IR"
- />
- <span
- class="layer-selector-item--text"
+ <label
+ class="layer-selector--item"
+ >
+ <input
+ name="baselayer"
+ type="radio"
+ value="Topo"
+ />
+ <span
+ class="layer-selector-item--text"
+ >
+ Topo
+ </span>
+ </label>
+ </div>
+ <div
+ class="layer-selector-item radio checkbox"
>
- Color IR
- </span>
- </label>
- </div>
+ <label
+ class="layer-selector--item"
+ >
+ <input
+ name="baselayer"
+ type="radio"
+ value="Color IR"
+ />
+ <span
+ class="layer-selector-item--text"
+ >
|
Unit tests
Process completed with exit code 1.
|