Previously all snapshots captured was a string representation of a function (`[Function]`). This made the tests useless because the result would always be a Function no matter what and so they will always pass, even if material changes happened.
114 lines
1.9 KiB
Text
114 lines
1.9 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`select.tsx Tests \`current\`-value with testId 1`] = `
|
|
<body>
|
|
<div>
|
|
<select
|
|
class="sc-bczRLJ laxZOh"
|
|
data-testid="select-1"
|
|
>
|
|
<option
|
|
data-testid="option-1-0"
|
|
value="0"
|
|
>
|
|
Test 1
|
|
</option>
|
|
<option
|
|
data-testid="option-1-1"
|
|
value="1"
|
|
>
|
|
Test 2
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
`;
|
|
|
|
exports[`select.tsx Tests \`current\`-value without testId 1`] = `
|
|
<body>
|
|
<div>
|
|
<select
|
|
class="sc-bczRLJ laxZOh"
|
|
data-testid="select"
|
|
>
|
|
<option
|
|
data-testid="option-0"
|
|
value="0"
|
|
>
|
|
Test 1
|
|
</option>
|
|
<option
|
|
data-testid="option-1"
|
|
value="1"
|
|
>
|
|
Test 2
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
`;
|
|
|
|
exports[`select.tsx Tests Select rendering 1`] = `
|
|
<body>
|
|
<div>
|
|
<select
|
|
class="sc-bczRLJ laxZOh"
|
|
data-testid="select"
|
|
>
|
|
<option
|
|
data-testid="option-0"
|
|
value="0"
|
|
>
|
|
Test 1
|
|
</option>
|
|
<option
|
|
data-testid="option-1"
|
|
value="1"
|
|
>
|
|
Test 2
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
`;
|
|
|
|
exports[`select.tsx Tests rendering of multiple Select elements 1`] = `
|
|
<body>
|
|
<div>
|
|
<select
|
|
class="sc-bczRLJ laxZOh"
|
|
data-testid="select-1"
|
|
>
|
|
<option
|
|
data-testid="option-1-0"
|
|
value="0"
|
|
>
|
|
Test 1
|
|
</option>
|
|
<option
|
|
data-testid="option-1-1"
|
|
value="1"
|
|
>
|
|
Test 2
|
|
</option>
|
|
</select>
|
|
<select
|
|
class="sc-bczRLJ laxZOh"
|
|
data-testid="select-2"
|
|
>
|
|
<option
|
|
data-testid="option-2-0"
|
|
value="0"
|
|
>
|
|
Test 1
|
|
</option>
|
|
<option
|
|
data-testid="option-2-1"
|
|
value="1"
|
|
>
|
|
Test 2
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
`;
|