mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
tests: adds more tests regarding snapshots multiple
This commit is contained in:
@ -132,3 +132,17 @@ test('multiple snapshot expectations with datasets', function () {
|
||||
|
||||
expect('foo bar 2')->toMatchSnapshot();
|
||||
})->with([1, 'foo', 'bar', 'baz']);
|
||||
|
||||
describe('describable', function () {
|
||||
test('multiple snapshot expectations with describe', function () {
|
||||
expect('foo bar 1')->toMatchSnapshot();
|
||||
|
||||
expect('foo bar 2')->toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
test('multiple snapshot expectations with repeat', function () {
|
||||
expect('foo bar 1')->toMatchSnapshot();
|
||||
|
||||
expect('foo bar 2')->toMatchSnapshot();
|
||||
})->repeat(10);
|
||||
|
||||
Reference in New Issue
Block a user