Skip to content

Commit

Permalink
chore: address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 20, 2024
1 parent 84ba90f commit 33a2640
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions test/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

import { nextPort } from './common'
import { assert, expect } from 'chai'
import { request, createServer, Server, globalAgent } from '../index'
import { request, createServer, globalAgent } from '../index'
import type { Server } from '../index'
import { toBinary } from '../lib/option_converter'
import { parse, generate } from 'coap-packet'
import { createSocket, Socket } from 'dgram'
import { useFakeTimers } from 'sinon'
import BufferListStream from 'bl'
import OutgoingMessage from '../lib/outgoing_message'
import { AddressInfo } from 'net'
import type OutgoingMessage from '../lib/outgoing_message'
import type { AddressInfo } from 'net'

describe('request', function () {
let server: Socket | Server | null
Expand Down Expand Up @@ -1390,7 +1391,8 @@ describe('request', function () {
expect(packet.options[0].name).to.eql('Observe')
expect(packet.options[0].value).to.eql(Buffer.from([1]))
} catch (err) {
return done(err)
done(err)
return
}
done()
})
Expand Down Expand Up @@ -1432,7 +1434,8 @@ describe('request', function () {
expect(packet.options[0].name).to.eql('Observe')
expect(packet.options[0].value).to.eql(Buffer.from([1]))
} catch (err) {
return done(err)
done(err)
return
}

done()
Expand Down
4 changes: 2 additions & 2 deletions test/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
import { parse, generate } from 'coap-packet'
import { nextPort } from './common'
import { expect } from 'chai'
import { CoapPacket, CoapServerOptions, Option } from '../models/models'
import type { CoapPacket, CoapServerOptions, Option } from '../models/models'
import { request, createServer } from '../index'
import { createSocket } from 'dgram'
import BufferListStream = require('bl')
import tk from 'timekeeper'
import sinon, { useFakeTimers } from 'sinon'
import { EventEmitter } from 'events'
import { parameters } from '../lib/parameters'
import IncomingMessage from '../lib/incoming_message'
import type IncomingMessage from '../lib/incoming_message'

describe('server', function () {
let server,
Expand Down

0 comments on commit 33a2640

Please sign in to comment.