| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4097,8 +4097,8 @@ added: | |||
| 4097 | 4097 | If unspecified, subtests inherit this value from their parent. | |
| 4098 | 4098 | **Default:** `Infinity`. | |
| 4099 | 4099 | ||
| 4100 | - This function is used to create a hook running before | ||
| 4101 | - subtest of the current test. | ||
| 4100 | + This function registers a hook that runs before any subtests of the current | ||
| 4101 | + test. | ||
| 4102 | 4102 | ||
| 4103 | 4103 | ### `context.beforeEach([fn][, options])` | |
| 4104 | 4104 | ||
@@ -4119,8 +4119,8 @@ added: | |||
| 4119 | 4119 | If unspecified, subtests inherit this value from their parent. | |
| 4120 | 4120 | **Default:** `Infinity`. | |
| 4121 | 4121 | ||
| 4122 | - This function is used to create a hook running | ||
| 4123 | - before each subtest of the current test. | ||
| 4122 | + This function registers a hook that runs before each subtest of the current | ||
| 4123 | + test. | ||
| 4124 | 4124 | ||
| 4125 | 4125 | ```js | |
| 4126 | 4126 | test('top level test', async (t) => { | |
@@ -4153,8 +4153,7 @@ added: | |||
| 4153 | 4153 | If unspecified, subtests inherit this value from their parent. | |
| 4154 | 4154 | **Default:** `Infinity`. | |
| 4155 | 4155 | ||
| 4156 | - This function is used to create a hook that runs after the current test | ||
| 4157 | - finishes. | ||
| 4156 | + This function registers a hook that runs after the current test finishes. | ||
| 4158 | 4157 | ||
| 4159 | 4158 | ```js | |
| 4160 | 4159 | test('top level test', async (t) => { | |
@@ -4182,8 +4181,8 @@ added: | |||
| 4182 | 4181 | If unspecified, subtests inherit this value from their parent. | |
| 4183 | 4182 | **Default:** `Infinity`. | |
| 4184 | 4183 | ||
| 4185 | - This function is used to create a hook running | ||
| 4186 | - after each subtest of the current test. | ||
| 4184 | + This function registers a hook that runs after each subtest of the current | ||
| 4185 | + test. | ||
| 4187 | 4186 | ||
| 4188 | 4187 | ```js | |
| 4189 | 4188 | test('top level test', async (t) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments