• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

u-wave / core / 11085094286

28 Sep 2024 03:39PM UTC coverage: 79.715% (-0.4%) from 80.131%
11085094286

Pull #637

github

web-flow
Merge 11ccf3b06 into 14c162f19
Pull Request #637: Switch to a relational database, closes #549

751 of 918 branches covered (81.81%)

Branch coverage included in aggregate %.

1891 of 2530 new or added lines in 50 files covered. (74.74%)

13 existing lines in 7 files now uncovered.

9191 of 11554 relevant lines covered (79.55%)

68.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

41.18
/src/utils/removeFromWaitlist.js
1
/**
1✔
2
 * @param {import('../Uwave.js').default} uw
1✔
3
 * @param {import('../schema.js').UserID} userID
1✔
4
 */
1✔
5
async function removeFromWaitlist(uw, userID) {
×
NEW
6
  const waitingIDs = await uw.waitlist.getUserIDs();
×
NEW
7
  if (waitingIDs.includes(userID)) {
×
NEW
8
    await uw.redis.lrem('waitlist', 0, userID);
×
9
    uw.publish('waitlist:leave', {
×
NEW
10
      userID,
×
NEW
11
      waitlist: await uw.waitlist.getUserIDs(),
×
12
    });
×
13
  }
×
14
}
×
15

1✔
16
export default removeFromWaitlist;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc