mirror of
https://github.com/actions/toolkit
synced 2025-05-09 00:22:56 +00:00
tests
This commit is contained in:
parent
2e5b10e3bd
commit
6477ef1460
4 changed files with 5 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
import * as http from 'http'
|
||||
import { createProxy } from 'proxy'
|
||||
import { proxy } from 'proxy'
|
||||
import {getOctokit} from '../src/github'
|
||||
import {GitHub, getOctokitOptions} from '../src/utils'
|
||||
|
||||
|
@ -12,7 +12,7 @@ describe('@actions/github', () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
// Start proxy server
|
||||
proxyServer = createProxy()
|
||||
proxyServer = proxy()
|
||||
await new Promise(resolve => {
|
||||
const port = Number(proxyUrl.split(':')[2])
|
||||
proxyServer.listen(port, () => resolve(null))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue