tests: adds more tests regarding snapshots multiple

This commit is contained in:
Nuno Maduro
2023-08-02 23:02:00 +01:00
parent 43107c1743
commit 00109e9976
29 changed files with 79 additions and 26 deletions

View File

@ -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);