Skip to content

Commit c41bab0

Browse files
committed
fix: resolve final conflicts in sync.service.test.ts
1 parent 8715b86 commit c41bab0

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

apps/backend/src/tests/sync.service.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
import '../../tests/setup';
33

44
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test';
5-
<<<<<<< HEAD
65
import { SyncService, syncService } from '../services/sync.service';
76
import { supabase } from '../config/supabase';
8-
=======
9-
import { supabase } from '../config/supabase';
10-
import { SyncService, syncService } from '../services/sync.service';
11-
>>>>>>> 4846267 (fix: remove hardcoded supabase mock, modularize supabase mock, call mock on setup)
127

138
describe('SyncService', () => {
149
beforeEach(() => {
@@ -147,7 +142,6 @@ describe('SyncService', () => {
147142

148143
describe('Event Processing', () => {
149144
it('should process booking created event', async () => {
150-
<<<<<<< HEAD
151145
const supabaseFromMock = supabase.from as unknown as {
152146
mock?: { calls: Array<[string]> };
153147
mockClear?: () => void;
@@ -184,11 +178,6 @@ describe('SyncService', () => {
184178
expect(tables).toContain('sync_events');
185179
expect(tables).toContain('bookings');
186180
expect(syncService.getStatus().isRunning).toBe(true);
187-
=======
188-
// Global mock is already set up - this test verifies basic functionality
189-
await syncService.start();
190-
expect(syncService.getStatus().isRunning).toBe(true);
191-
>>>>>>> 5d91a40 (fix: booking tests (change to bun and add supabase mocks) and fix sync service (mocks))
192181
await syncService.stop();
193182
});
194183

0 commit comments

Comments
 (0)