Skip to content

Commit

Permalink
test: many fixes, much testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Dec 1, 2023
1 parent ed99c03 commit edb0585
Show file tree
Hide file tree
Showing 8 changed files with 255 additions and 95 deletions.
11 changes: 11 additions & 0 deletions __tests__/transport.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as transport from '../src/transport'
import { RpcTransport } from '../src/config'

describe('action transport tools', () => {
beforeEach(() => {
Expand All @@ -9,4 +10,14 @@ describe('action transport tools', () => {
const engine = transport.obtainTransport()
expect(engine).not.toBeNull()
})

it('can provide a configured rpc transport (grpc)', async () => {
const engine = transport.obtainTransport(RpcTransport.GRPC)
expect(engine).not.toBeNull()
})

it('can provide a configured rpc transport (connect)', async () => {
const engine = transport.obtainTransport(RpcTransport.CONNECT)
expect(engine).not.toBeNull()
})
})
106 changes: 76 additions & 30 deletions dist/cleanup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit edb0585

Please sign in to comment.