Skip to content

Commit

Permalink
add tests for New
Browse files Browse the repository at this point in the history
  • Loading branch information
fogfish committed May 19, 2020
1 parent c14aa32 commit a0c6ee7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"github.com/fogfish/dynamo"
"github.com/fogfish/iri"
"github.com/fogfish/it"
)
Expand Down Expand Up @@ -82,3 +83,9 @@ func TestUnmarshalDynamo(t *testing.T) {
If(dynamodbattribute.UnmarshalMap(fixtureDdb, &item)).Should().Equal(nil).
If(item).Should().Equal(fixtureItem)
}

func TestNew(t *testing.T) {
it.Ok(t).
If(dynamo.Must(dynamo.New("ddb:///a"))).ShouldNot().Equal(nil).
If(dynamo.Must(dynamo.New("s3:///a"))).ShouldNot().Equal(nil)
}

0 comments on commit a0c6ee7

Please sign in to comment.