Skip to content

Commit 9125ee6

Browse files
committed
fix tests
1 parent 785873b commit 9125ee6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • samples/client/others/typescript/encode-decode/test/test

samples/client/others/typescript/encode-decode/test/test/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class TestServerStub implements PromiseHttpLibrary {
2626
const body: ResponseBody = {
2727
binary: async () => { throw new Error('not implemented') },
2828
text: async () => JSON.stringify(value),
29+
stream: () => null,
2930
};
3031
const headers = { 'content-type': 'application/json' };
3132
return new ResponseContext(200, headers, body);
@@ -35,6 +36,7 @@ class TestServerStub implements PromiseHttpLibrary {
3536
const body: ResponseBody = {
3637
binary: async () => { throw new Error('not implemented') },
3738
text: async () => "",
39+
stream: () => null,
3840
};
3941
return new ResponseContext(200, {}, body);
4042
} else {

0 commit comments

Comments
 (0)