Skip to content

Commit ec0e23f

Browse files
committed
Fix cleanup function returned from utility test
1 parent 5ffbbc6 commit ec0e23f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/db/tests/utility-exposure.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ describe(`Utility exposure pattern`, () => {
1717
// Create a mock sync config
1818
const mockSync: SyncConfig<{ id: string }> = {
1919
sync: () => {
20-
return {
21-
unsubscribe: () => {},
22-
}
20+
return () => {}
2321
},
2422
}
2523

@@ -47,9 +45,7 @@ describe(`Utility exposure pattern`, () => {
4745
// Create a mock sync config
4846
const mockSync: SyncConfig<{ id: string }> = {
4947
sync: () => {
50-
return {
51-
unsubscribe: () => {},
52-
}
48+
return () => {}
5349
},
5450
}
5551

0 commit comments

Comments
 (0)