()
| 21 | |
| 22 | // Share.from — protocol symbol happy path (returns valid share object) |
| 23 | async function testShareProtocolHappyPath() { |
| 24 | const obj = { |
| 25 | [shareProtocol](options) { |
| 26 | return share(from('protocol-data'), options); |
| 27 | }, |
| 28 | }; |
| 29 | const shared = Share.from(obj); |
| 30 | const result = await text(shared.pull()); |
| 31 | assert.strictEqual(result, 'protocol-data'); |
| 32 | } |
| 33 | |
| 34 | // SyncShare.fromSync — protocol symbol happy path |
| 35 | async function testSyncShareProtocolHappyPath() { |
no test coverage detected