improves the git feature by adding a conflict status
This commit is contained in:
@@ -188,6 +188,12 @@ import Testing
|
||||
#expect(git.executed == [["restore", "--", "src/b.php"]])
|
||||
}
|
||||
|
||||
@Test func aConflictIsNotAStagedFile() async {
|
||||
let (store, _, _) = await makeStore(snapshot([("both.txt", .unmerged, false), ("config/app.json", .modified, true)]))
|
||||
#expect(store.stagedPathCount == 1)
|
||||
#expect(store.fileStatuses["both.txt"] == .unmerged)
|
||||
}
|
||||
|
||||
@Test func unstagingLogsRestoreStaged() async {
|
||||
let (store, git, _) = await makeStore()
|
||||
await store.unstage(["config/app.json"])
|
||||
|
||||
Reference in New Issue
Block a user