Skip to content

Commit

Permalink
fix: Fix faux hierarchy reversal test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed May 4, 2024
1 parent aa2bd79 commit 2a5fc35
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4052,19 +4052,22 @@ describe('Floccus', function() {
expectTreeEqual(
tree1AfterFirstSync,
tree1,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)
serverTreeAfterFirstSync.title = tree1.title
expectTreeEqual(
serverTreeAfterFirstSync,
tree1,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)
tree2AfterFirstSync.title = tree1.title
expectTreeEqual(
tree2AfterFirstSync,
tree1,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)
console.log('First round ok')

Expand Down Expand Up @@ -4124,7 +4127,8 @@ describe('Floccus', function() {
expectTreeEqual(
serverTreeAfterThirdSync,
tree1AfterThirdSync,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)

console.log('Second round second half ok')
Expand All @@ -4142,13 +4146,15 @@ describe('Floccus', function() {
expectTreeEqual(
serverTreeAfterFinalSync,
tree2AfterFinalSync,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)
tree1AfterThirdSync.title = tree2AfterFinalSync.title
expectTreeEqual(
tree2AfterFinalSync,
tree1AfterThirdSync,
ignoreEmptyFolders(ACCOUNT_DATA)
ignoreEmptyFolders(ACCOUNT_DATA),
false
)
})
it('should handle complex move-remove interactions', async function() {
Expand Down

0 comments on commit 2a5fc35

Please sign in to comment.