Skip to content

Commit f6a1a97

Browse files
committed
Update readme.md
1 parent ae85c40 commit f6a1a97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10071007
const { getAllByTestId } = render(<UsersList users={allUsers} showOnlyVIP={true} />);
10081008

10091009
// Assert - Mix UI & data in assertion
1010-
expect(getAllByTestId("user")).toEqual('[<li data-testid="user">John Doe</li>]');
1010+
expect(getAllByTestId("user")).toEqual('[<li data-test-id="user">John Doe</li>]');
10111011
});
10121012
```
10131013

@@ -1037,8 +1037,8 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10371037
// the markup code (part of React component)
10381038
<h3>
10391039
<Badge pill className="fixed_badge" variant="dark">
1040-
<span data-testid="errorsLabel">{value}</span>
1041-
<!-- note the attribute data-testid -->
1040+
<span data-test-id="errorsLabel">{value}</span>
1041+
<!-- note the attribute data-test-id -->
10421042
</Badge>
10431043
</h3>
10441044
```
@@ -1271,7 +1271,7 @@ export default function ProductsList() {
12711271
fetchProducts();
12721272
}, []);
12731273

1274-
return products ? <div>{products}</div> : <div data-testid="no-products-message">No products</div>;
1274+
return products ? <div>{products}</div> : <div data-test-id="no-products-message">No products</div>;
12751275
}
12761276

12771277
// test

0 commit comments

Comments
 (0)