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

zooniverse / front-end-monorepo / 16529320833

25 Jul 2025 06:47PM UTC coverage: 77.447% (-0.4%) from 77.896%
16529320833

Pull #6958

github

web-flow
Merge 5e9568c9a into 1609d4670
Pull Request #6958: lib-react-components: Add FavoritesIconButton component and useUserCollections hook

11349 of 17140 branches covered (66.21%)

Branch coverage included in aggregate %.

63 of 137 new or added lines in 13 files covered. (45.99%)

17572 of 20203 relevant lines covered (86.98%)

397.48 hits per line

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

8.0
/packages/lib-react-components/src/helpers/collections/removeSubjectsFromCollection.js
1
import { collections } from '@zooniverse/panoptes-js'
1✔
2
import auth from 'panoptes-client/lib/auth'
1!
3

NEW
4
export async function removeSubjectsFromCollection({ collectionId, subjectIds }) {
×
NEW
5
  const token = await auth.checkBearerToken()
×
NEW
6
  const authorization = `Bearer ${token}`
×
7
  
NEW
8
  const params = {
×
9
    authorization,
10
    id: collectionId,
11
    subjects: subjectIds
NEW
12
  }
×
13

NEW
14
  const response = await collections.removeSubjects(params)
×
15

NEW
16
  if (response?.status === 204) {
×
NEW
17
    return { id: collectionId }
×
18
  }
19

NEW
20
  throw new Error('Unexpected response from removeSubjects')
×
NEW
21
}
×
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

© 2026 Coveralls, Inc