Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Sep 27, 2023
1 parent 4c243c8 commit 4948364
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/deployment/selectors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('when getting deployments by worlds', () => {
},
externalNames: {
'luffy.eth': {
domain: 'luffy.eth',
subdomain: 'luffy.eth',
worldStatus: {
healthy: true,
scene: {
Expand All @@ -45,7 +45,7 @@ describe('when getting deployments by worlds', () => {
}
},
'zoro.eth': {
domain: 'zoro.eth'
subdomain: 'zoro.eth'
}
}
},
Expand Down
20 changes: 18 additions & 2 deletions src/modules/ens/reducer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,24 @@ describe('when handling the fetch external names actions', () => {
const action = fetchExternalNamesSuccess(owner, names)
const newState = ensReducer(state, action)
expect(newState.externalNames).toEqual({
'name1.eth': { domain: 'name1.eth', nftOwnerAddress: owner },
'name2.eth': { domain: 'name2.eth', nftOwnerAddress: owner }
'name1.eth': {
subdomain: 'name1.eth',
nftOwnerAddress: owner,
name: 'name1.eth',
content: '',
ensOwnerAddress: '',
resolver: '',
tokenId: ''
},
'name2.eth': {
subdomain: 'name2.eth',
nftOwnerAddress: owner,
name: 'name2.eth',
content: '',
ensOwnerAddress: '',
resolver: '',
tokenId: ''
}
})
})

Expand Down

0 comments on commit 4948364

Please sign in to comment.