88 "testing"
99 "time"
1010
11+ "github.com/localstack/lstk/internal/ui/styles"
1112 "github.com/stretchr/testify/assert"
1213)
1314
@@ -61,12 +62,12 @@ func TestPlainSink_EmitsStatusEvent(t *testing.T) {
6162 {
6263 name : "ready phase with detail" ,
6364 event : ContainerStatusEvent {Phase : "ready" , Container : "localstack-aws" , Detail : "abc123" },
64- expected : fmt .Sprintf ("%s LocalStack ready (abc123)\n " , SuccessMarkerText ()),
65+ expected : fmt .Sprintf ("%s LocalStack ready (abc123)\n " , styles . SuccessMarker ()),
6566 },
6667 {
6768 name : "ready phase without detail" ,
6869 event : ContainerStatusEvent {Phase : "ready" , Container : "localstack-aws" },
69- expected : fmt .Sprintf ("%s LocalStack ready\n " , SuccessMarkerText ()),
70+ expected : fmt .Sprintf ("%s LocalStack ready\n " , styles . SuccessMarker ()),
7071 },
7172 {
7273 name : "unknown phase with detail" ,
@@ -163,7 +164,7 @@ func TestPlainSink_EmitsInstanceInfoEvent(t *testing.T) {
163164 Uptime : 4 * time .Minute + 23 * time .Second ,
164165 })
165166
166- expected := SuccessMarkerText () + " LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1\n "
167+ expected := styles . SuccessMarker () + " LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1\n "
167168 assert .Equal (t , expected , out .String ())
168169 assert .NoError (t , sink .Err ())
169170 })
@@ -177,7 +178,7 @@ func TestPlainSink_EmitsInstanceInfoEvent(t *testing.T) {
177178 Host : "127.0.0.1:4566" ,
178179 })
179180
180- expected := SuccessMarkerText () + " LocalStack AWS Emulator is running (127.0.0.1:4566)\n "
181+ expected := styles . SuccessMarker () + " LocalStack AWS Emulator is running (127.0.0.1:4566)\n "
181182 assert .Equal (t , expected , out .String ())
182183 assert .NoError (t , sink .Err ())
183184 })
0 commit comments