MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / createRootResult

Function createRootResult

src/__tests__/provider.test.ts:6–17  ·  view source on GitHub ↗
(overrides: Partial<CheckResult> = {})

Source from the content-addressed store, hash-verified

4import type { CheckResult } from '../type';
5
6const createRootResult = (overrides: Partial<CheckResult> = {}): CheckResult => ({
7 update: true,
8 hash: 'full-hash',
9 name: 'full-version',
10 description: 'full description',
11 metaInfo: 'full meta',
12 diff: 'current-full.hdiff',
13 pdiff: 'package-full.phdiff',
14 full: 'full-hash',
15 paths: ['cdn.example.com'],
16 ...overrides,
17});
18
19describe('resolveCheckResult', () => {
20 test('returns upToDate when rollout target is already current', () => {

Callers 1

provider.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected