Updated test to not use packas as external lib
This commit is contained in:
parent
108aac8b0e
commit
552a24ed32
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user