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

u-wave / core / 11980013222

22 Nov 2024 08:56PM UTC coverage: 78.464% (-1.7%) from 80.16%
11980013222

Pull #637

github

goto-bus-stop
Fix vote test, do not re-emit unchanged vote submissions
Pull Request #637: Switch to a relational database

757 of 916 branches covered (82.64%)

Branch coverage included in aggregate %.

1978 of 2764 new or added lines in 52 files covered. (71.56%)

9 existing lines in 7 files now uncovered.

8654 of 11078 relevant lines covered (78.12%)

70.83 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