Skip to content

Commit

Permalink
passes all existing Client-side Jest Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnaganog committed Aug 9, 2019
1 parent 65cf623 commit 2dc1732
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/firecomm/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ const newClient = stub.clientStream({meta: 'data'}, [interceptorProvider])

const duplexStream = stub.bidiChat({meta: 'data'}, [interceptorProvider])
.send({ message: "from client" })
.on(({message}) => {
.on((data) => console.log(data))

duplexStream.on(({message}) => {
console.log(message);
duplexStream.send({ message: "from client2" });
}).catch((err => {
})

duplexStream.catch((err => {
console.log({ err });
}));

Expand Down

0 comments on commit 2dc1732

Please sign in to comment.