Skip to content

Commit 6532565

Browse files
authored
Update code to be valid TS (#5134)
1 parent 75ea50a commit 6532565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/plugins/after-spec-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ on('after:spec', (spec, results) => {
121121
if (results && results.stats.failures === 0 && results.video) {
122122
// `del()` returns a promise, so it's important to return it to ensure
123123
// deleting the video is finished before moving on
124-
return del(results.video)
124+
del(results.video)
125125
}
126126
})
127127
```
@@ -155,7 +155,7 @@ on('after:spec', (spec, results) => {
155155
})
156156
if (!failures) {
157157
// delete the video if the spec passed and no tests retried
158-
return del(results.video)
158+
del(results.video)
159159
}
160160
}
161161
})

0 commit comments

Comments
 (0)