Add tests

This commit is contained in:
jshayes
2024-10-13 10:39:17 -04:00
parent 9510d4a2f9
commit 6968094e2b
10 changed files with 357 additions and 11 deletions

View File

@ -414,3 +414,18 @@ describe('with on nested describe', function () {
});
})->with([1]);
});
test('after describe block', function (...$args) {
expect($args)->toBe([5]);
})->with([5]);
it('may be used with high order after describe block')
->with('greeting-string')
->expect(fn (string $greeting) => $greeting)
->throwsNoExceptions();
dataset('after-describe', ['after']);
test('after describe block with named dataset', function (...$args) {
expect($args)->toBe(['after']);
})->with('after-describe');