This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
package models
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestProductExists(t *testing.T) {
|
|
assert := assert.New(t)
|
|
ok, err := ProductExists(3)
|
|
|
|
assert.True(ok)
|
|
assert.NoError(err)
|
|
}
|