mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
edd8d54950
While at it, remove the docs as they are referring to the original source code. Tests should help to understand how it is supposed to work. Note that the copy is verbatim and modifications will happen in a separate commit, along with the necessary license declarations.
29 lines
986 B
Plaintext
29 lines
986 B
Plaintext
{
|
|
state: {}
|
|
events: [
|
|
{ kind: "modify-data-any", paths: ["/watch/file"], time: 1 }
|
|
{ kind: "access-close-write", paths: ["/watch/file"], time: 2 }
|
|
{ kind: "modify-data-any", paths: ["/watch/file"], time: 3 }
|
|
{ kind: "access-close-write", paths: ["/watch/file"], time: 4 }
|
|
]
|
|
expected: {
|
|
queues: {
|
|
/watch/file: {
|
|
events: [
|
|
{ kind: "modify-data-any", paths: ["*"], time: 1 }
|
|
{ kind: "access-close-write", paths: ["*"], time: 2 }
|
|
{ kind: "modify-data-any", paths: ["*"], time: 3 }
|
|
{ kind: "access-close-write", paths: ["*"], time: 4 }
|
|
]
|
|
}
|
|
}
|
|
events: {
|
|
short: []
|
|
long: [
|
|
{ kind: "modify-data-any", paths: ["/watch/file"], time: 3 }
|
|
{ kind: "access-close-write", paths: ["/watch/file"], time: 4 }
|
|
]
|
|
}
|
|
}
|
|
}
|