This commit is contained in:
Svante Bengtson 2021-07-12 15:37:47 +00:00
parent 6fdc96c8bf
commit 044b63e761
3 changed files with 3 additions and 3 deletions

View File

@ -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 }}

View File

@ -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'
}) })

View File

@ -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, [])