From 6c6bba2a0458c31706617e554095b5816321de35 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sun, 23 May 2021 22:02:06 +0100 Subject: [PATCH] tests: updates snapshots --- src/Datasets.php | 2 +- tests/.snapshots/success.txt | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Datasets.php b/src/Datasets.php index e2375624..8eff980c 100644 --- a/src/Datasets.php +++ b/src/Datasets.php @@ -111,7 +111,7 @@ final class Datasets { $exporter = new Exporter(); - if(is_int($key)){ + if (is_int($key)) { return \sprintf(' with (%s)', $exporter->shortenedRecursiveExport($data)); } diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 301abcea..d89b30e8 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -40,8 +40,8 @@ ✓ eager wrapped registered datasets with (1) ✓ eager wrapped registered datasets with (2) ✓ eager registered wrapped datasets did the job right - ✓ named datasets with data set "one" (1) - ✓ named datasets with data set "two" (2) + ✓ named datasets with data set "one" + ✓ named datasets with data set "two" ✓ named datasets did the job right ✓ lazy named datasets with (Bar Object (...)) ✓ it creates unique test case names with ('Name 1', Pest\Plugin Object (), true) #1 @@ -168,7 +168,8 @@ ✓ it outputs the help information when --help is used PASS Tests\Unit\Datasets - ✓ it show the names of named datasets in their description + ✓ it show only the names of named datasets in their description + ✓ it show the actual dataset of non-named datasets in their description PASS Tests\Unit\Plugins\Version ✓ it outputs the version when --version is used @@ -219,5 +220,5 @@ ✓ it is a test ✓ it uses correct parent class - Tests: 7 skipped, 119 passed + Tests: 7 skipped, 120 passed \ No newline at end of file