refactor: revise errMsg in rename_test.go
This commit is contained in:
parent
6854f0f63c
commit
c6454064a4
1 changed files with 3 additions and 3 deletions
|
|
@ -26,19 +26,19 @@ func TestNewCmdRename(t *testing.T) {
|
|||
{
|
||||
name: "no arguments",
|
||||
input: "",
|
||||
errMsg: "not enough arguments",
|
||||
errMsg: "accepts 3 arg(s), received 0",
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "missing old filename and new filename",
|
||||
input: "123",
|
||||
errMsg: "<oldFilename> and <newFilename> are missing",
|
||||
errMsg: "accepts 3 arg(s), received 1",
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "missing new filename",
|
||||
input: "123 old.txt",
|
||||
errMsg: "<newFilename> is missing",
|
||||
errMsg: "accepts 3 arg(s), received 2",
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue