mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 18:12:48 +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.
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
{
|
|
state: {
|
|
timeout: 5
|
|
}
|
|
events: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 1 }
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 2 }
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
expected: {
|
|
queues: {
|
|
/watch/file: {
|
|
events: [
|
|
{ kind: "modify-data-content", paths: ["*"], time: 1 }
|
|
{ kind: "modify-data-content", paths: ["*"], time: 2 }
|
|
{ kind: "modify-data-content", paths: ["*"], time: 3 }
|
|
]
|
|
}
|
|
}
|
|
events: {
|
|
1: []
|
|
2: []
|
|
3: []
|
|
4: []
|
|
5: []
|
|
6: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 1 }
|
|
]
|
|
7: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 2 }
|
|
]
|
|
8: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
9: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
10: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
100: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
1000: [
|
|
{ kind: "modify-data-content", paths: ["/watch/file"], time: 3 }
|
|
]
|
|
}
|
|
}
|
|
}
|