Assert on err msg directly in ext install tests
This commit is contained in:
parent
b9b60637b9
commit
ec4b2dfe1b
1 changed files with 3 additions and 8 deletions
|
|
@ -301,14 +301,9 @@ func TestNewCmdExtension(t *testing.T) {
|
|||
}
|
||||
return nil
|
||||
},
|
||||
wantStderr: fmt.Sprintf(
|
||||
"! %s",
|
||||
(&ErrExtensionExecutableNotFound{
|
||||
Dir: tempDir,
|
||||
Name: "gh-test",
|
||||
}).Error()),
|
||||
wantErr: false,
|
||||
isTTY: true,
|
||||
wantStderr: fmt.Sprintf("! an extension has been installed but there is no executable: executable file named \"%s\" in %s is required to run the extension after install. Perhaps you need to build it?\n", "gh-test", tempDir),
|
||||
wantErr: false,
|
||||
isTTY: true,
|
||||
},
|
||||
{
|
||||
name: "install local extension without executable with no TTY shows no warning",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue