-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
591 additions
and
385 deletions.
There are no files selected for viewing
24 changes: 22 additions & 2 deletions
24
packages/cli/src/commands/identity/get-attestations.test.ts
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { testWithGanache } from '@celo/dev-utils/lib/ganache-test' | ||
import { testWithAnvilL1 } from '@celo/dev-utils/lib/anvil-test' | ||
import write from '@oclif/core/lib/cli-ux/write' | ||
import { testLocally } from '../../test-utils/cliUtils' | ||
import Web3 from 'web3' | ||
import { testLocallyWithWeb3Node } from '../../test-utils/cliUtils' | ||
import Contracts from './contracts' | ||
process.env.NO_SYNCCHECK = 'true' | ||
|
||
testWithGanache('network:contracts', () => { | ||
testWithAnvilL1('network:contracts', (web3: Web3) => { | ||
test('runs', async () => { | ||
const spy = jest.spyOn(write, 'stdout') | ||
await testLocally(Contracts, ['--output', 'json']) | ||
await testLocallyWithWeb3Node(Contracts, ['--output', 'json'], web3) | ||
expect(spy.mock.calls).toMatchSnapshot() | ||
}) | ||
}) |
Oops, something went wrong.