Skip to content

Commit d4594a5

Browse files
committed
Update readme-zh-CN.md
1 parent f364ba5 commit d4594a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme-zh-CN.md

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

10281028
// Assert - Mix UI & data in assertion
1029-
expect(getAllByTestId('user')).toEqual('[<li data-testid="user">John Doe</li>]');
1029+
expect(getAllByTestId('user')).toEqual('[<li data-test-id="user">John Doe</li>]');
10301030
});
10311031

10321032
```
@@ -1062,7 +1062,7 @@ test('When flagging to show only VIP, should display only VIP members', () => {
10621062
// the markup code (part of React component)
10631063
<h3>
10641064
<Badge pill className="fixed_badge" variant="dark">
1065-
<span data-testid="errorsLabel">{value}</span> <!-- note the attribute data-testid -->
1065+
<span data-test-id="errorsLabel">{value}</span> <!-- note the attribute data-test-id -->
10661066
</Badge>
10671067
</h3>
10681068
```
@@ -1315,7 +1315,7 @@ export default function ProductsList() {
13151315
fetchProducts();
13161316
}, []);
13171317

1318-
return products ? <div>{products}</div> : <div data-testid='no-products-message'>No products</div>
1318+
return products ? <div>{products}</div> : <div data-test-id='no-products-message'>No products</div>
13191319
}
13201320

13211321
// test

0 commit comments

Comments
 (0)