Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor committed Feb 24, 2025
1 parent f9b4b5a commit dd40735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ class TestRepository extends OfflineFirstWithTestRepository {
OfflineFirstGetPolicy? get,
OfflineFirstUpsertPolicy? upsert,
}) {
return query?.copyWith(
offset: get?.index,
);
return query?.copyWith(action: QueryAction.values[get?.index ?? 0]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
test('#applyPolicyToQuery', () async {
const policy = OfflineFirstGetPolicy.localOnly;
final query = TestRepository().applyPolicyToQuery(const Query(), get: policy);
expect(query?.offset, policy.index);
expect(query?.action?.index, policy.index);
});

group('#delete', () {
Expand Down

0 comments on commit dd40735

Please sign in to comment.