Skip to content

Commit

Permalink
test(identity): fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 7, 2022
1 parent c6f5137 commit f492f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion identity/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestMarshalIdentityWithCredentials(t *testing.T) {
credentialsInJson := gjson.Get(b.String(), "credentials")
assert.True(t, credentialsInJson.Exists())

assert.JSONEq(t, "{\"password\":{\"type\":\"password\",\"identifiers\":null,\"updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"0001-01-01T00:00:00Z\"}}", credentialsInJson.Raw)
assert.JSONEq(t, "{\"password\":{\"type\":\"password\",\"identifiers\":null,\"updated_at\":\"0001-01-01T00:00:00Z\",\"created_at\":\"0001-01-01T00:00:00Z\",\"version\":0}}", credentialsInJson.Raw)
assert.Equal(t, credentials, i.Credentials, "Original credentials should not be touched by marshalling")
}

Expand Down

0 comments on commit f492f0e

Please sign in to comment.