-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce trusted addresses on report (#95)
* feat: introduce trusted addresses on report * fix: increase timeout * Update src/govv3/checks/targetsVerified.ts * fix: update reports
- Loading branch information
Showing
14 changed files
with
274,005 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
376 changes: 376 additions & 0 deletions
376
src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MOCK_PAYLOAD } from './mocks/payload'; | ||
import { describe, it, expect } from 'vitest'; | ||
import { CHAIN_ID_CLIENT_MAP } from '@bgd-labs/js-utils'; | ||
import { generateReport } from './generatePayloadReport.js'; | ||
|
||
describe('generatePayloadReport', () => { | ||
it( | ||
'should match snapshot', | ||
async () => { | ||
const report = await generateReport({ | ||
...(MOCK_PAYLOAD as any), | ||
publicClient: CHAIN_ID_CLIENT_MAP[MOCK_PAYLOAD.simulation.transaction.network_id], | ||
}); | ||
expect(report).toMatchSnapshot(); | ||
}, | ||
{ timeout: 30000 } | ||
); | ||
}); |
Oops, something went wrong.