MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / updateState

Function updateState

packages/app-core/src/lib/app-update-state.test.ts:9–24  ·  view source on GitHub ↗
(phase: AppUpdateState['phase'], overrides: Partial<AppUpdateState> = {})

Source from the content-addressed store, hash-verified

7} from './app-update-state'
8
9function updateState(phase: AppUpdateState['phase'], overrides: Partial<AppUpdateState> = {}): AppUpdateState {
10 return {
11 phase,
12 currentVersion: '1.3.9',
13 availableVersion: null,
14 releaseName: null,
15 releaseDate: null,
16 releaseNotes: null,
17 progressPercent: null,
18 transferredBytes: null,
19 totalBytes: null,
20 bytesPerSecond: null,
21 message: '',
22 ...overrides
23 }
24}
25
26describe('app update state labels', () => {
27 it('shows attention labels for available updates', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected