mirror of
https://github.com/supabase/supabase.git
synced 2026-05-12 04:16:08 +08:00
* update gh action, update vitest config * debug * debug cov * idk try something different * test2 * test3 * add base path * rm debug * add apiAuthenticate tests * supabaseClient tests * apiWrappers tests * add apiHelpers tests * add configcat tests * add formatSql tests * add github tests * add cloudprovider utils tests * add helpers tests * fix typeerr * add missing readonly err * fix typeerrrs * fix type errors in apiWrapper tests * fix apiHelpers test * add packages/ui tests * add coveralls flags * try coveralls parallel config * fix coveralls parallel config --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
23 lines
718 B
TypeScript
23 lines
718 B
TypeScript
import { describe, it, expect } 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('')
|
|
})
|
|
})
|