Skip to content

Commit

Permalink
tests: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Oct 1, 2023
1 parent 53eff5a commit c0eda75
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -11,7 +11,7 @@ EXIT /b\r
SETLOCAL\r
CALL :find_dp0\r
\r
IF EXISTS "%dp0%\node.exe" (\r
IF EXIST "%dp0%\node.exe" (\r
SET "_prog=%dp0%\node.exe"\r
) ELSE (\r
SET "_prog=node"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -11,7 +11,7 @@ EXIT /b\r
SETLOCAL\r
CALL :find_dp0\r
\r
IF EXISTS "%dp0%\node.exe" (\r
IF EXIST "%dp0%\node.exe" (\r
SET "_prog=%dp0%\node.exe"\r
) ELSE (\r
SET "_prog=node"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -11,7 +11,7 @@ EXIT /b\r
SETLOCAL\r
CALL :find_dp0\r
\r
IF EXISTS "%dp0%\node.exe" (\r
IF EXIST "%dp0%\node.exe" (\r
SET "_prog=%dp0%\node.exe"\r
) ELSE (\r
SET "_prog=node"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -13,7 +13,7 @@ CALL :find_dp0\r
@SET key=value\r
@SET key2=value2\r
\r
IF EXISTS "%dp0%\node.exe" (\r
IF EXIST "%dp0%\node.exe" (\r
SET "_prog=%dp0%\node.exe"\r
) ELSE (\r
SET "_prog=node"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -12,7 +12,7 @@ SETLOCAL\r
CALL :find_dp0\r
@SET NODE_PATH=./lib:%NODE_PATH%\r
\r
IF EXISTS "%dp0%\node.exe" (\r
IF EXIST "%dp0%\node.exe" (\r
SET "_prog=%dp0%\node.exe"\r
) ELSE (\r
SET "_prog=node"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -11,7 +11,7 @@ EXIT /b\r
SETLOCAL\r
CALL :find_dp0\r
\r
IF EXISTS "%dp0%\/usr/bin/sh.exe" (\r
IF EXIST "%dp0%\/usr/bin/sh.exe" (\r
SET "_prog=%dp0%\/usr/bin/sh.exe"\r
) ELSE (\r
SET "_prog=/usr/bin/sh"\r
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/node-maintainer/tests/shim_bin.rs
source: crates/oro-shim-bin/tests/shim_bin.rs
expression: "std::fs::read_to_string(to.with_extension(\"cmd\")).unwrap().replace('\\r',\n \"\\\\r\")"
---
@ECHO off\r
Expand All @@ -11,7 +11,7 @@ EXIT /b\r
SETLOCAL\r
CALL :find_dp0\r
\r
IF EXISTS "%dp0%\/usr/bin/sh.exe" (\r
IF EXIST "%dp0%\/usr/bin/sh.exe" (\r
SET "_prog=%dp0%\/usr/bin/sh.exe"\r
) ELSE (\r
SET "_prog=/usr/bin/sh"\r
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__add.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"add\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro add
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__apply.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"apply\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro apply
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__login.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"login\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro login
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__logout.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"logout\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro logout
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__ping.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"ping\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro ping
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__reapply.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"reapply\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro reapply
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__remove.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"remove\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro remove
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/help__view.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source: tests/help.rs
expression: "sub_md(\"view\")"
---
stderr:
]9;4;3;0\
]9;4;0;0\

stdout:
# oro view
Expand Down

0 comments on commit c0eda75

Please sign in to comment.