Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Nov 4, 2021
1 parent 9ebbb0e commit da0d631
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Collection/Collection.router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ describe('Collection router', () => {
)
})

it('should upsert the collection and respond with the upserted collection', () => {
it('should upsert the collection and respond with the upserted collection adding the eth_address', () => {
return server
.put(buildURL(url))
.set(createAuthHeaders('put', url))
Expand All @@ -349,7 +349,10 @@ describe('Collection router', () => {
.then((response: any) => {
expect(response.body).toEqual({
ok: true,
data: toFullCollection(newCollectionAttributes),
data: {
...toFullCollection(newCollectionAttributes),
eth_address: wallet.address,
},
})

expect(newCollectionAttributes).toEqual(
Expand Down Expand Up @@ -408,7 +411,7 @@ describe('Collection router', () => {
)
})

it('should respond with a 200, the inserted collection and have upserted the collection with the sent collection', () => {
it('should respond with a 200, the inserted collection adding address and have upserted the collection with the sent collection', () => {
return server
.put(buildURL(url))
.set(createAuthHeaders('put', url))
Expand All @@ -417,7 +420,10 @@ describe('Collection router', () => {
.then((response: any) => {
expect(response.body).toEqual({
ok: true,
data: toFullCollection(newCollectionAttributes),
data: {
...toFullCollection(newCollectionAttributes),
eth_address: wallet.address,
},
})

expect(newCollectionAttributes).toEqual(
Expand Down

0 comments on commit da0d631

Please sign in to comment.