Skip to content

Commit

Permalink
Merge pull request #155 from hufeng/master
Browse files Browse the repository at this point in the history
fixed unit test
  • Loading branch information
hufeng committed Nov 8, 2019
2 parents 783df6e + 3bd7b40 commit 72ccfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dubbo/src/__tests__/decode-buffer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ it('test receive right data', () => {
0x6e,
0x67,
]);
const dBuff = DecodeBuffer.from(1).subscribe(data => {
const dBuff = new DecodeBuffer().subscribe(data => {
const {requestId, res, err} = decode(data);
expect(requestId).toEqual(2);
expect(res).toEqual('pang');
Expand Down Expand Up @@ -80,7 +80,7 @@ it('test receive wrong data', () => {
0x6e,
0x67,
]);
const dBuff = DecodeBuffer.from(1).subscribe(data => {
const dBuff = new DecodeBuffer().subscribe(data => {
const {requestId, res, err} = decode(data);
expect(requestId).toEqual(2);
expect(res).toEqual('pang');
Expand Down

0 comments on commit 72ccfce

Please sign in to comment.