mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* feat(updater): switch to validated local mac builds * test(updater): cover local build recovery actions * fix(types): keep local build contract in project sources
16 lines
617 B
JavaScript
16 lines
617 B
JavaScript
import { describe, expect, it } from 'vitest'
|
|
import { createLocalBuildVersion } from './build-mac-local.mjs'
|
|
|
|
describe('createLocalBuildVersion', () => {
|
|
it('creates unique valid prerelease versions without changing the release base', () => {
|
|
expect(createLocalBuildVersion('1.4.159-rc.0', 123456, 'abc123')).toBe(
|
|
'1.4.159-rc.0.local.123456.abc123'
|
|
)
|
|
expect(createLocalBuildVersion('1.4.159', 123456, 'abc123')).toBe('1.4.159-local.123456.abc123')
|
|
})
|
|
|
|
it('sanitizes commit identifiers', () => {
|
|
expect(createLocalBuildVersion('1.0.0', 1, 'abc/def')).toBe('1.0.0-local.1.abcdef')
|
|
})
|
|
})
|