Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 19:22:34 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 23:45:43 +0300
commit423594e03a906ef4150f433666ff588b022c3c92 (patch)
treef56bf832a773cc723c25f30771f830d8a657549f /hugolib
parent64afb7ca51ef5fd5d4a0afa121183217292daa5e (diff)
dartsass: Enable deprecation, @warn and @debug logging
* @warn and Sass deprecations are printed as WARN * @debug is currently logged as INFO (needs the `--verbose` flag). We may adjust this if it gets too chatty. Fixes #9683
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/integrationtest_builder.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go
index 1bfa194bd..d49e29763 100644
--- a/hugolib/integrationtest_builder.go
+++ b/hugolib/integrationtest_builder.go
@@ -6,6 +6,7 @@ import (
"io"
"os"
"path/filepath"
+ "regexp"
"strings"
"sync"
"testing"
@@ -98,6 +99,12 @@ func (s *IntegrationTestBuilder) AssertLogContains(text string) {
s.Assert(s.logBuff.String(), qt.Contains, text)
}
+func (s *IntegrationTestBuilder) AssertLogMatches(expression string) {
+ s.Helper()
+ re := regexp.MustCompile(expression)
+ s.Assert(re.MatchString(s.logBuff.String()), qt.IsTrue, qt.Commentf(s.logBuff.String()))
+}
+
func (s *IntegrationTestBuilder) AssertBuildCountData(count int) {
s.Helper()
s.Assert(s.H.init.data.InitCount(), qt.Equals, count)