Skip to content

Commit c8367f0

Browse files
authored
Update readme.md
Missing async keyword
1 parent 9d6da39 commit c8367f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ it("When visiting TestJavaScript.com home page, a menu is displayed", () => {
536536
![](https://img.shields.io/badge/🔧%20Example%20using%20Mocha-blue.svg "Examples with Mocha")
537537

538538
```javascript
539-
before(() => {
539+
before(async () => {
540540
//adding sites and admins data to our DB. Where is the data? outside. At some external json or migration framework
541541
await DB.AddSeedDataFromJson('seed.json');
542542
});
@@ -914,7 +914,7 @@ Credit: <a href="https://github.com/TheHollidayInn" data-href="https://github.co
914914
![](https://img.shields.io/badge/🔧%20Example%20using%20Mocha-blue.svg "Examples with Mocha")
915915

916916
```javascript
917-
before(() => {
917+
before(async () => {
918918
//adding sites and admins data to our DB. Where is the data? outside. At some external json or migration framework
919919
await DB.AddSeedDataFromJson('seed.json');
920920
});

0 commit comments

Comments
 (0)