15 lines
289 B
Go
15 lines
289 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestFetchDupes(t *testing.T) {
|
||
|
// TODO: mock HTTP request
|
||
|
url := "https://en.wikipedia.org/wiki/Dishwasher_salmon"
|
||
|
dupes := fetchDupes(url)
|
||
|
assert.NotEmpty(t, *dupes, "Expected at least one duplicate")
|
||
|
}
|