mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-01-03 04:45:04 +01:00
feat: add reactions (#1074)
This commit is contained in:
29
fakedata/records_test.go
Normal file
29
fakedata/records_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package fakedata_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/SecurityBrewery/catalyst/fakedata"
|
||||
catalystTesting "github.com/SecurityBrewery/catalyst/testing"
|
||||
)
|
||||
|
||||
func Test_records(t *testing.T) {
|
||||
app, cleanup := catalystTesting.App(t)
|
||||
defer cleanup()
|
||||
|
||||
got, err := fakedata.Records(app, 2, 2)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Greater(t, len(got), 2)
|
||||
}
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
app, cleanup := catalystTesting.App(t)
|
||||
defer cleanup()
|
||||
|
||||
err := fakedata.Generate(app, 0, 0)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
Reference in New Issue
Block a user