(overrides: Partial<CheckResult> = {})
| 4 | import type { CheckResult } from '../type'; |
| 5 | |
| 6 | const 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 | |
| 19 | describe('resolveCheckResult', () => { |
| 20 | test('returns upToDate when rollout target is already current', () => { |