Fix: don't need sudo if we're root + other aesthetics
This commit is contained in:
parent
4d0086df41
commit
ab104bb7bc
7 changed files with 125 additions and 80 deletions
23
internal/pages/06_finalize_test.go
Normal file
23
internal/pages/06_finalize_test.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package pages
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFinalizeNotice(t *testing.T) {
|
||||
msg := "\n%s\nprinting the finalize notice for manual review, this test should always pass.\n%s\n\n"
|
||||
divider := strings.Repeat("-", len(msg)-12)
|
||||
t.Logf(msg, divider, divider)
|
||||
t.Log("\n\nWith isRoot == true:\n\n")
|
||||
|
||||
finalizeNotice(true)
|
||||
|
||||
println("\n\n")
|
||||
|
||||
t.Log("\n\nWith isRoot == false:\n\n")
|
||||
|
||||
finalizeNotice(false)
|
||||
|
||||
println("\n\n")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue