Skip to content

Commit 4ca595f

Browse files
authored
Merge pull request #20 from steven-isbell/patch-1
Update README.md
2 parents aec7ce6 + dacf354 commit 4ca595f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,25 @@ By default attributes with name `data-test-id` or `data-testid` (as used in [rea
6565

6666
```javascript
6767
plugins: [
68-
"babel-plugin-jsx-remove-data-test-id",
69-
{
70-
attributes: "selenium-id"
71-
}
68+
[
69+
"babel-plugin-jsx-remove-data-test-id",
70+
{
71+
attributes: "selenium-id"
72+
}
73+
]
7274
];
7375
```
7476

7577
Or if you need to strip off multiple attributes, you can define an attributes array as follows:
7678

7779
```javascript
7880
plugins: [
79-
"babel-plugin-jsx-remove-data-test-id",
80-
{
81-
attributes: ["data-test-id", "selenium-id", "another-attr-to-be-stripped"]
82-
}
81+
[
82+
"babel-plugin-jsx-remove-data-test-id",
83+
{
84+
attributes: ["data-test-id", "selenium-id", "another-attr-to-be-stripped"]
85+
}
86+
]
8387
];
8488
```
8589

0 commit comments

Comments
 (0)