Fix binary path

This commit is contained in:
Qiao Han
2022-08-03 23:04:20 +08:00
parent 78c4398270
commit 2117484206
5 changed files with 15 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
import {getDownloadObject} from '../src/utils'
import {getDownloadUrl} from '../src/utils'
import * as os from 'os'
import * as process from 'process'
import * as cp from 'child_process'
@@ -6,8 +6,8 @@ import * as path from 'path'
import {expect, test} from '@jest/globals'
test('returns download path to binary', async () => {
const link = getDownloadObject('0.1.0')
expect(link.url).toContain(
const url = getDownloadUrl('0.1.0')
expect(url).toContain(
'https://github.com/supabase/cli/releases/download/v0.1.0/'
)
})