Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-o committed Jan 17, 2025
1 parent 02fd2c1 commit 0922c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/compressor-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ describe 'compressor', ->
p = gzipSync Buffer.from('not correct json')
wdecomp p, {compress:'json'}
.catch (err) ->
err.toString()[0...31].should.eql 'SyntaxError: Unexpected token o'
err.toString()[0...29].should.eql 'SyntaxError: Unexpected token'
2 changes: 1 addition & 1 deletion test/rpc-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe 'Rpc', ->
def = rpc.registerResponse '1234'
buf = gzipSync Buffer.from('so wrong') # this is not valid json
rpc.resolveResponse '1234', buf, compress:'json'
def.promise.should.eventually.be.rejectedWith 'Unexpected token s'
def.promise.should.eventually.be.rejectedWith 'Unexpected token'

describe 'with a compress:buffer header', ->

Expand Down

0 comments on commit 0922c67

Please sign in to comment.