From 552a24ed329a8d75c226bc838ce7bf895fff7f8f Mon Sep 17 00:00:00 2001 From: Chris Joyce Date: Thu, 25 May 2023 19:01:58 +1000 Subject: [PATCH] Updated test to not use packas as external lib --- search_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/search_test.go b/search_test.go index f6b196a..99b9f1a 100644 --- a/search_test.go +++ b/search_test.go @@ -1,12 +1,10 @@ // Copyright 2020-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved. -package googlesearch_test +package googlesearch import ( "context" "testing" - - googlesearch "github.com/chrisjoyce911/google-search" ) var ctx = context.Background() @@ -15,11 +13,11 @@ func TestSearch(t *testing.T) { q := "Hello World" - opts := googlesearch.SearchOptions{ + opts := SearchOptions{ Limit: 20, } - returnLinks, err := googlesearch.Search(ctx, q, opts) + returnLinks, err := Search(ctx, q, opts) if err != nil { t.Errorf("something went wrong: %v", err) return