fix(docs): Fixing some errors in the dev-guide example. (#5662)

This commit is contained in:
Matt Mix 2025-07-19 07:32:26 -04:00 committed by GitHub
parent 30cbbc0e75
commit 663d10c06e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,11 +70,11 @@ import (
) )
func TestMe(t *testing.T) { func TestMe(t *testing.T) {
hook := testutils.LogsUnderTestWithLogLeve(log.WarnLevel, t) hook := testutils.LogsUnderTestWithLogLevel(log.WarnLevel, t)
... function under tests ... ... function under tests ...
testutils.TestHelperLogContains("example warning message", hook, t) testutils.TestHelperLogContains("example warning message", hook, t)
// provide negative assertion // provide negative assertion
testuitls.TestHelperLogNotContains("this message should not be shown", hook, t) testutils.TestHelperLogNotContains("this message should not be shown", hook, t)
} }
``` ```