Skip to content

Commit

Permalink
fixup lint and types
Browse files Browse the repository at this point in the history
  • Loading branch information
reconbot committed Dec 24, 2024
1 parent ba50421 commit 0fb9e2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/parser-spacepacket/lib/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect } from 'chai'
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { expect } = require('chai')
import sinon from 'sinon'
import { SpacePacketParser } from './'

Expand Down
2 changes: 1 addition & 1 deletion packages/stream/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
_writev(data: Array<{ chunk: Buffer, encoding: BufferEncoding }>, callback: ErrorCallback) {
debug('_writev', `${data.length} chunks of data`)
const dataV = data.map(write => write.chunk)
this._write(Buffer.concat(dataV), undefined, callback)
this._write(Buffer.concat(dataV), 'binary', callback)
}

_read(bytesToRead: number) {
Expand Down
3 changes: 2 additions & 1 deletion test/assert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { assert, use } from 'chai'
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { assert, use } = require('chai')
import chaiSubset from 'chai-subset'
use(chaiSubset)

Expand Down

0 comments on commit 0fb9e2e

Please sign in to comment.