Skip to content

Commit

Permalink
test: style updates for assert.snapshot()
Browse files Browse the repository at this point in the history
This commit updates the assert.snapshot() fixtures to better
match the code style of the rest of the codebase.

PR-URL: #44429
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
cjihrig authored and RafaelGSS committed Sep 6, 2022
1 parent d6ac16a commit a03add4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/assert-snapshot/basic.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import assert from 'node:assert';

await assert.snapshot("test", "name");
await assert.snapshot('test', 'name');
4 changes: 2 additions & 2 deletions test/fixtures/assert-snapshot/multiple.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assert from 'node:assert';

await assert.snapshot("test", "name");
await assert.snapshot("test", "another name");
await assert.snapshot('test', 'name');
await assert.snapshot('test', 'another name');
4 changes: 2 additions & 2 deletions test/fixtures/assert-snapshot/non-existing-name.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assert from 'node:assert';

await assert.snapshot("test", "another name");
await assert.snapshot("test", "non existing");
await assert.snapshot('test', 'another name');
await assert.snapshot('test', 'non existing');
2 changes: 1 addition & 1 deletion test/fixtures/assert-snapshot/single.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import assert from 'node:assert';

await assert.snapshot("test", "snapshot");
await assert.snapshot('test', 'snapshot');
2 changes: 1 addition & 1 deletion test/fixtures/assert-snapshot/value-changed.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import assert from 'node:assert';

await assert.snapshot("changed", "snapshot");
await assert.snapshot('changed', 'snapshot');

0 comments on commit a03add4

Please sign in to comment.