Skip to content

Commit df103e8

Browse files
committed
Cleanup snapshot fix
1 parent 8840c20 commit df103e8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/commands/json/cmd-json.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ describe('socket json', async () => {
112112
'should print a socket.json when found',
113113
async cmd => {
114114
const { code, stderr, stdout } = await invokeNpm(binCliPath, cmd)
115-
// (Must normalize newlines to fix snapshot test for Windows)
116-
expect(stdout.replace(/\\r\\n/g, '\\n').replace(/(?:\\r|\\x0d)/g, '')).toMatchInlineSnapshot(`
115+
// (Remove carriage returns on Windows)
116+
expect(stdout.replace(/(?:\\r|\\x0d)/g, '')).toMatchInlineSnapshot(`
117117
"{
118118
" _____ _ _ ": "Local config file for Socket CLI tool ( https://npmjs.org/socket ), to work with https://socket.dev",
119119
"| __|___ ___| |_ ___| |_ ": " The config in this file is used to set as defaults for flags or cmmand args when using the CLI",

src/commands/manifest/cmd-manifest-conda.test.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ describe('socket manifest conda', async () => {
120120
'should print a json blurb with --json flag',
121121
async cmd => {
122122
const { stderr, stdout } = await invokeNpm(binCliPath, cmd)
123-
// (Must normalize newlines to fix snapshot test for Windows)
124123
expect(stdout).toMatchInlineSnapshot(`
125124
"{
126125
"ok": false,

0 commit comments

Comments
 (0)