Skip to content

Commit

Permalink
fix(api-kit): singleton rename in getSafeCreation
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanra committed Jan 29, 2025
1 parent f071de8 commit fa2c847
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/api-kit/tests/endpoint/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ describe('Endpoint tests', () => {
it('getSafeCreationInfo', async () => {
await chai
.expect(safeApiKit.getSafeCreationInfo(safeAddress))
.to.be.eventually.deep.equals({ data: { success: true } })
// FIXME the singleton hack makes that the property is always added by SafeApiKit.
// Remove when is correctly returned by the service.
.to.be.eventually.deep.equals({ data: { success: true }, singleton: undefined })
chai.expect(fetchData).to.have.been.calledWith({
url: `${txServiceBaseUrl}/v1/safes/${safeAddress}/creation/`,
method: 'get'
Expand All @@ -316,7 +318,9 @@ describe('Endpoint tests', () => {
it('getSafeCreationInfo EIP-3770', async () => {
await chai
.expect(safeApiKit.getSafeCreationInfo(eip3770SafeAddress))
.to.be.eventually.deep.equals({ data: { success: true } })
// FIXME the singleton hack makes that the property is always added by SafeApiKit.
// Remove when is correctly returned by the service.
.to.be.eventually.deep.equals({ data: { success: true }, singleton: undefined })
chai.expect(fetchData).to.have.been.calledWith({
url: `${txServiceBaseUrl}/v1/safes/${safeAddress}/creation/`,
method: 'get'
Expand Down

0 comments on commit fa2c847

Please sign in to comment.