go-pattern-examples/structure/01_facade/facade_test.go

15 lines
250 B
Go
Raw Normal View History

2020-04-21 17:50:21 +03:00
package facade
import "testing"
var expect = "A module running\nB module running"
// TestFacadeAPI ...
func TestFacadeAPI(t *testing.T) {
api := NewAPI()
ret := api.Test()
if ret != expect {
t.Fatalf("expect %s, return %s", expect, ret)
}
}