mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 10:19:50 -04:00
25 lines
720 B
TypeScript
25 lines
720 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { getCloudProviderArchitecture } from './cloudprovider-utils'
|
|
import { PROVIDERS } from './constants'
|
|
|
|
describe('getCloudProviderArchitecture', () => {
|
|
it('should return the correct architecture', () => {
|
|
const result = getCloudProviderArchitecture(PROVIDERS.AWS.id)
|
|
|
|
expect(result).toBe('ARM')
|
|
})
|
|
|
|
it('should return the correct architecture for fly', () => {
|
|
const result = getCloudProviderArchitecture(PROVIDERS.FLY.id)
|
|
|
|
expect(result).toBe('x86 64-bit')
|
|
})
|
|
|
|
it('should return an empty string if the cloud provider is not supported', () => {
|
|
const result = getCloudProviderArchitecture('unknown')
|
|
|
|
expect(result).toBe('')
|
|
})
|
|
})
|