-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make transports optional (#2295)
Follow up to #2293 that makes the transports array optional.
- Loading branch information
1 parent
18db7a4
commit 887c6ff
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-env mocha */ | ||
|
||
import { expect } from 'aegir/chai' | ||
import { createLibp2p } from '../../src/index.js' | ||
import type { Libp2p } from '@libp2p/interface' | ||
|
||
describe('core', () => { | ||
let libp2p: Libp2p | ||
|
||
after(async () => { | ||
await libp2p.stop() | ||
}) | ||
|
||
it('should start a minimal node', async () => { | ||
libp2p = await createLibp2p({}) | ||
|
||
expect(libp2p).to.have.property('status', 'started') | ||
}) | ||
}) |