Peter Steinbergerfeat: add beta update channelbb6f00f10 months agoHistory
23 lines · 725 B · Swift
RawDownload
import Testing@testable import CodexBar @Suitestruct UpdateChannelTests {    @Test    func defaultChannelFromStableVersion() {        #expect(UpdateChannel.defaultChannel(for: "1.2.3") == .stable)    }     @Test    func defaultChannelFromPrereleaseVersion() {        #expect(UpdateChannel.defaultChannel(for: "1.2.3-beta.1") == .beta)        #expect(UpdateChannel.defaultChannel(for: "1.2.3-rc.1") == .beta)        #expect(UpdateChannel.defaultChannel(for: "1.2.3-alpha") == .beta)    }     @Test    func allowedSparkleChannels() {        #expect(UpdateChannel.stable.allowedSparkleChannels == [""])        #expect(UpdateChannel.beta.allowedSparkleChannels == ["", UpdateChannel.sparkleBetaChannel])    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t