Skip to content

Commit 2aab9e6

Browse files
committed
chore(supabase): format
1 parent 5cad229 commit 2aab9e6

File tree

1 file changed

+28
-31
lines changed

1 file changed

+28
-31
lines changed

packages/core/supabase-js/test/integration.test.ts

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -265,44 +265,41 @@ describe('Supabase Integration Tests', () => {
265265
})
266266
})
267267

268-
describe.each([
269-
{ vsn: '1.0.0' },
270-
{ vsn: '2.0.0' }
271-
])('Realtime with vsn: $vsn', ({ vsn }) => {
272-
const channelName = `channel-${crypto.randomUUID()}`
273-
let channel: RealtimeChannel
274-
let email: string
275-
let password: string
276-
let supabase: SupabaseClient
277-
278-
beforeEach(async () => {
279-
// Create client with specific version
280-
supabase = createClient(SUPABASE_URL, ANON_KEY, {
281-
realtime: {
282-
heartbeatIntervalMs: 500,
283-
vsn,
284-
...(wsTransport && { transport: wsTransport }),
285-
},
286-
})
268+
describe.each([{ vsn: '1.0.0' }, { vsn: '2.0.0' }])('Realtime with vsn: $vsn', ({ vsn }) => {
269+
const channelName = `channel-${crypto.randomUUID()}`
270+
let channel: RealtimeChannel
271+
let email: string
272+
let password: string
273+
let supabase: SupabaseClient
274+
275+
beforeEach(async () => {
276+
// Create client with specific version
277+
supabase = createClient(SUPABASE_URL, ANON_KEY, {
278+
realtime: {
279+
heartbeatIntervalMs: 500,
280+
vsn,
281+
...(wsTransport && { transport: wsTransport }),
282+
},
283+
})
287284

288-
await supabase.auth.signOut()
289-
email = `test-${Date.now()}@example.com`
290-
password = 'password123'
291-
await supabase.auth.signUp({ email, password })
285+
await supabase.auth.signOut()
286+
email = `test-${Date.now()}@example.com`
287+
password = 'password123'
288+
await supabase.auth.signUp({ email, password })
292289

293290
const config = { broadcast: { ack: true, self: true }, private: true }
294291
channel = supabase.channel(channelName, { config })
295292
})
296293

297-
afterEach(async () => {
298-
await supabase.removeAllChannels()
299-
})
294+
afterEach(async () => {
295+
await supabase.removeAllChannels()
296+
})
300297

301-
test('is able to connect and broadcast', async () => {
302-
const testMessage = { message: 'test' }
303-
let receivedMessage: any
304-
let subscribed = false
305-
let attempts = 0
298+
test('is able to connect and broadcast', async () => {
299+
const testMessage = { message: 'test' }
300+
let receivedMessage: any
301+
let subscribed = false
302+
let attempts = 0
306303

307304
channel
308305
.on('broadcast', { event: 'test-event' }, (payload) => (receivedMessage = payload))

0 commit comments

Comments
 (0)