Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 5, 2024
1 parent 3c82678 commit facc07d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions base-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export class BaseNode {
let maxAdded = 0
await this.log.each({ order: 'added' }, (action, meta) => {
if (meta.added <= lastSynced) return false
/* c8 ignore next */
if (!this.syncFilter(action, meta)) return undefined
if (this.options.onSend) {
promises.push(
Expand Down
1 change: 1 addition & 0 deletions each-store-check/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function all(request, list) {
if (!list) list = []
let page = await request
list = page.entries.concat(list)
/* c8 ignore next */
return page.next ? all(page.next(), list) : list
}

Expand Down
2 changes: 1 addition & 1 deletion ws-connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export class WsConnection {
this.Class = Class
} else if (typeof WebSocket !== 'undefined') {
this.Class = WebSocket
/* c8 ignore next 3 */
} else {
/* c8 ignore next 2 */
throw new Error('No WebSocket support')
}
this.url = url
Expand Down

0 comments on commit facc07d

Please sign in to comment.