fix lint
This commit is contained in:
parent
6fdc96c8bf
commit
044b63e761
|
@ -42,7 +42,7 @@ jobs:
|
||||||
- run: npm ci --prefer-offline
|
- run: npm ci --prefer-offline
|
||||||
- run: npm run coverage
|
- run: npm run coverage
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
if: matrix.node == 14
|
if: always() && matrix.node == 14
|
||||||
uses: codecov/codecov-action@v1.0.6
|
uses: codecov/codecov-action@v1.0.6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
|
@ -40,7 +40,7 @@ describe('Hostmask', () => {
|
||||||
it('Getting line.hostname should throw if message lacks source', () => {
|
it('Getting line.hostname should throw if message lacks source', () => {
|
||||||
const line = tokenise('PRIVMSG #channel hello')
|
const line = tokenise('PRIVMSG #channel hello')
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
line.hostmask
|
line.hostmask // eslint-disable-line @typescript-eslint/no-unused-expressions
|
||||||
}, {
|
}, {
|
||||||
name: 'TypeError'
|
name: 'TypeError'
|
||||||
})
|
})
|
||||||
|
|
|
@ -103,7 +103,7 @@ describe('tokenise', () => {
|
||||||
assert.deepStrictEqual(line.params, ['hello world'])
|
assert.deepStrictEqual(line.params, ['hello world'])
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should have an empty array fro messages without params', () => {
|
it('Should have an empty array from messages without params', () => {
|
||||||
const line = tokenise('PRIVMSG')
|
const line = tokenise('PRIVMSG')
|
||||||
assert.strictEqual(line.command, 'PRIVMSG')
|
assert.strictEqual(line.command, 'PRIVMSG')
|
||||||
assert.deepStrictEqual(line.params, [])
|
assert.deepStrictEqual(line.params, [])
|
||||||
|
|
Loading…
Reference in New Issue