forked from mirror/oddmu
20 lines
327 B
Go
20 lines
327 B
Go
package main
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
"github.com/google/subcommands"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMissingCmd(t *testing.T) {
|
|
b := new(bytes.Buffer)
|
|
s := missingCli(b, minimalIndex(t))
|
|
assert.Equal(t, subcommands.ExitSuccess, s)
|
|
r := `Page Missing
|
|
index test
|
|
`
|
|
assert.Equal(t, r, b.String())
|
|
}
|