Skip to content

Commit

Permalink
Merge pull request #1601 from ardriveapp/db-migration-hotfix
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
thiagocarvalhodev authored Feb 1, 2024
2 parents 0cd8720 + 8eefdcc commit 52cbc90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions test/blocs/fs_entry_move_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ void main() {
driveId: driveId,
name: 'fake-drive-name',
path: '',
isHidden: false,
isHidden: const Value(false),
),
FolderEntriesCompanion.insert(
id: nestedFolderId,
driveId: driveId,
parentFolderId: Value(rootFolderId),
name: nestedFolderId,
path: '/$nestedFolderId',
isHidden: false,
isHidden: const Value(false),
),
FolderEntriesCompanion.insert(
id: conflictTestFolderId,
driveId: driveId,
parentFolderId: Value(rootFolderId),
name: conflictTestFolderId,
path: '/$conflictTestFolderId',
isHidden: false,
isHidden: const Value(false),
),
]);
// Insert fake files
Expand All @@ -107,7 +107,7 @@ void main() {
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
),
Expand All @@ -126,7 +126,7 @@ void main() {
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
),
Expand All @@ -152,7 +152,7 @@ void main() {
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
),
Expand All @@ -172,7 +172,7 @@ void main() {
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
),
Expand Down
14 changes: 7 additions & 7 deletions test/test_utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ Future<void> addTestFilesToDb(
driveId: driveId,
name: 'fake-drive-name',
path: '',
isHidden: false,
isHidden: const Value(false),
),
FolderEntriesCompanion.insert(
id: nestedFolderId,
driveId: driveId,
parentFolderId: Value(rootFolderId),
name: nestedFolderId,
path: '/$nestedFolderId',
isHidden: false,
isHidden: const Value(false),
),
...List.generate(
emptyNestedFolderCount,
Expand All @@ -86,7 +86,7 @@ Future<void> addTestFilesToDb(
parentFolderId: Value(rootFolderId),
name: folderId,
path: '/$folderId',
isHidden: false,
isHidden: const Value(false),
);
},
)..shuffle(Random(0)),
Expand All @@ -111,7 +111,7 @@ Future<void> addTestFilesToDb(
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
)..shuffle(Random(0)),
Expand All @@ -130,7 +130,7 @@ Future<void> addTestFilesToDb(
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
)..shuffle(Random(0)),
Expand All @@ -156,7 +156,7 @@ Future<void> addTestFilesToDb(
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
)..shuffle(Random(0)),
Expand All @@ -176,7 +176,7 @@ Future<void> addTestFilesToDb(
dateCreated: Value(defaultDate),
lastModifiedDate: defaultDate,
dataContentType: const Value(''),
isHidden: false,
isHidden: const Value(false),
);
},
)..shuffle(Random(0)),
Expand Down

0 comments on commit 52cbc90

Please sign in to comment.