Skip to content

Commit

Permalink
fixup! feat: add support for Size2 and Size 1 options
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Oct 17, 2022
1 parent d47bc94 commit 311ab20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/end-to-end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('end-to-end', function () {

it('should allow option \'Size2\'', function (done) {
const req = request(`coap://localhost:${port}`)
const value = 520;
const value = 520

req.setOption('Size2', value)
req.end()
Expand All @@ -272,14 +272,14 @@ describe('end-to-end', function () {

it('should allow option \'Size1\'', function (done) {
const req = request(`coap://localhost:${port}`)
const value = 9001;
const value = 9001

req.setOption('Size1', 9001)
req.setOption('Size1', value)
req.end()

server.once('request', (req) => {
expect(req.options[0].name).to.equal('Size1')
expect(req.options[0].value).to.equal(9001)
expect(req.options[0].value).to.equal(value)
done()
})
})
Expand Down

0 comments on commit 311ab20

Please sign in to comment.