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

zooniverse / front-end-monorepo / 16599520111

29 Jul 2025 02:47PM UTC coverage: 77.208% (-0.2%) from 77.453%
16599520111

Pull #6972

github

web-flow
Merge ba27ae6c6 into 367774cd7
Pull Request #6972: lib-react-components: Add CollectIconButton, CollectionsModal, and related components

11385 of 17289 branches covered (65.85%)

Branch coverage included in aggregate %.

88 of 153 new or added lines in 18 files covered. (57.52%)

17673 of 20347 relevant lines covered (86.86%)

396.28 hits per line

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

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

NEW
4
export async function createCollection({ options, projectId, subjectIds }) {
×
NEW
5
  const token = await auth.checkBearerToken()
×
NEW
6
  const authorization = `Bearer ${token}`
×
7

NEW
8
  const response = await collections.create({
×
9
    authorization,
10
    data: options,
11
    project: projectId,
12
    subjects: subjectIds
13
  })
14

NEW
15
  const [newCollection] = response.body.collections
×
NEW
16
  return newCollection
×
NEW
17
}
×
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