Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased (develop)

- added: App/device attestation for gated info-server requests
- added: Prediction Markets side menu entry with market browsing scenes (prototype): category tabs, per-venue price comparison, and a merged order book view, backed by the Slipstream Connect API with a bundled sample dataset when no API key is configured
- added: "-m" tag on the version number in the Help scene for Maestro test builds
- added: Sign Message option in the wallet list menu for Bitcoin-family wallets, letting users prove self-hosted wallet ownership to exchanges by signing an exchange-provided message.
- added: `edge://buy` and `edge://sell` deep links (and their `https://deep.edge.app` equivalents) that open the buy/sell flow, optionally pinning a provider and payment method to the top of the quote options for that visit.
Expand Down
25 changes: 25 additions & 0 deletions src/__tests__/scenes/PredictionMarketDetailsScene.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { describe, expect, it } from '@jest/globals'
import { render } from '@testing-library/react-native'
import * as React from 'react'

import { PredictionMarketDetailsScene } from '../../components/scenes/PredictionMarketDetailsScene'
import { predictionMarketSampleData } from '../../plugins/prediction-markets/slipstreamSampleData'
import { FakeProviders } from '../../util/fake/FakeProviders'
import { fakeEdgeAppSceneProps } from '../../util/fake/fakeSceneProps'

describe('PredictionMarketDetailsScene', () => {
it('should render', () => {
const rendered = render(
<FakeProviders>
<PredictionMarketDetailsScene
{...fakeEdgeAppSceneProps('predictionMarketDetails', {
market: predictionMarketSampleData.sports[0]
})}
/>
</FakeProviders>
)

expect(rendered.toJSON()).toMatchSnapshot()
rendered.unmount()
})
})
22 changes: 22 additions & 0 deletions src/__tests__/scenes/PredictionMarketListScene.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { describe, expect, it } from '@jest/globals'
import { render } from '@testing-library/react-native'
import * as React from 'react'

import { PredictionMarketListScene } from '../../components/scenes/PredictionMarketListScene'
import { FakeProviders } from '../../util/fake/FakeProviders'
import { fakeEdgeAppSceneProps } from '../../util/fake/fakeSceneProps'

describe('PredictionMarketListScene', () => {
it('should render', () => {
const rendered = render(
<FakeProviders>
<PredictionMarketListScene
{...fakeEdgeAppSceneProps('predictionMarkets', undefined)}
/>
</FakeProviders>
)

expect(rendered.toJSON()).toMatchSnapshot()
rendered.unmount()
})
})
Loading
Loading