diff options
Diffstat (limited to 'lex-serve/main_test.go')
-rw-r--r-- | lex-serve/main_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lex-serve/main_test.go b/lex-serve/main_test.go index 00cc3a3..4783fb3 100644 --- a/lex-serve/main_test.go +++ b/lex-serve/main_test.go @@ -8,6 +8,7 @@ import ( "testing" "github.com/peter-evans/patience" + "push-f.com/lex-surf/internal/lex" ) func newHandler() handler { @@ -20,7 +21,7 @@ func newHandler() handler { SearchURL: "https://lex.gov.zu/?search=%s", }, }, - lawsByCC: map[string]map[string]law{}, + lawsByCC: map[string]map[string]lex.Law{}, } } @@ -116,8 +117,8 @@ func TestSearchRedirect(t *testing.T) { func TestLawRedirect(t *testing.T) { h := newHandler() - h.lawsByCC["zu"] = map[string]law{} - h.lawsByCC["zu"]["zepl"] = law{ + h.lawsByCC["zu"] = map[string]lex.Law{} + h.lawsByCC["zu"]["zepl"] = lex.Law{ URL: "https://lex.gov.zu/zeppelin-code", } |