mirror of
https://github.com/abue-ammar/tinycast.git
synced 2026-10-02 08:14:38 +08:00
format fix
This commit is contained in:
@@ -50,11 +50,11 @@ struct InstalledAITests {
|
||||
try FileManager.default.setAttributes([.posixPermissions: 0o755], ofItemAtPath: cli.path)
|
||||
// The shape `mise activate fish` takes: PATH set only when interactive, after a greeting.
|
||||
try """
|
||||
echo 'Welcome to fish'
|
||||
if status is-interactive
|
||||
set -gx PATH \(tools.path) $PATH
|
||||
end
|
||||
""".write(
|
||||
echo 'Welcome to fish'
|
||||
if status is-interactive
|
||||
set -gx PATH \(tools.path) $PATH
|
||||
end
|
||||
""".write(
|
||||
to: config.appending(path: "fish/config.fish"), atomically: true, encoding: .utf8)
|
||||
} catch {
|
||||
expect(false, "the fish fixture is written: \(error)")
|
||||
|
||||
@@ -788,8 +788,9 @@ struct WindowRoomTests {
|
||||
name: "Design", windows: [window("figma", id: 12), window("notes", id: 13)],
|
||||
lastEnteredAt: Date(timeIntervalSince1970: 30))
|
||||
let edited = Room(
|
||||
id: learned.id, name: "Design Review", windows: [window("figma"), window("mail")])
|
||||
.keepingRuntime(of: learned)
|
||||
id: learned.id, name: "Design Review", windows: [window("figma"), window("mail")]
|
||||
)
|
||||
.keepingRuntime(of: learned)
|
||||
expect(
|
||||
edited.name == "Design Review" && edited.lastEnteredAt == learned.lastEnteredAt,
|
||||
"an edited room keeps when it was last entered")
|
||||
|
||||
@@ -77,8 +77,9 @@ struct WindowManagementSettingsView: View {
|
||||
.foregroundStyle(.secondary)
|
||||
Stepper(
|
||||
"Gap between windows", value: $settings.windowGap,
|
||||
in: WindowPlacementEngine.gapRange, step: 2)
|
||||
.labelsHidden()
|
||||
in: WindowPlacementEngine.gapRange, step: 2
|
||||
)
|
||||
.labelsHidden()
|
||||
}
|
||||
} label: {
|
||||
SettingsRowTitle(.windowManagementOptions, "Gap between windows")
|
||||
|
||||
@@ -90,7 +90,8 @@ enum ExecutableLocator {
|
||||
watchdog.cancel()
|
||||
guard process.terminationStatus == 0 else { return nil }
|
||||
// Startup and logout files can print on either side of the lookup's answer.
|
||||
let path = String(decoding: data, as: UTF8.self)
|
||||
let path =
|
||||
String(decoding: data, as: UTF8.self)
|
||||
.split(whereSeparator: \.isNewline)
|
||||
.last { $0.hasPrefix(answerMarker) }?
|
||||
.dropFirst(answerMarker.count)
|
||||
|
||||
Reference in New Issue
Block a user