| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7ff3551 commit 85aa6ca
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -595,9 +595,7 @@ class Test extends AsyncResource { | |||
| 595 | 595 | ||
| 596 | 596 | const { args, ctx } = this.getRunArgs(); | |
| 597 | 597 | const after = async () => { | |
| 598 | - // If its a root test then check for global after hook else check for parent after hook | ||
| 599 | - const check = this.parent ? this.parent.hooks.after.length > 0 : this.hooks.after.length > 0; | ||
| 600 | - if (check) { | ||
| 598 | + if (this.hooks.after.length > 0) { | ||
| 601 | 599 | await this.runHook('after', { __proto__: null, args, ctx }); | |
| 602 | 600 | } | |
| 603 | 601 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments