Refactor/contributor citation events #1679
Annotations
3 errors
|
|
|
Run yarn test --coverage
The operation was canceled.
|
|
Run yarn test --coverage:
packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts#L137
AssertionError: promise resolved "{ users: [ { …(19) }, …(5) ], …(1) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "totalCount": 6,
+ "users": [
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f6",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.795Z,
+ "email": null,
+ "github": "",
+ "id": "u6",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.795Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Test Admin User",
+ "orcid": "0000-0000-0000-0006",
+ "orcidConsent": null,
+ "provider": "orcid",
+ "providerId": "orcid6",
+ "updatedAt": 2023-01-06T00:00:00.000Z,
+ },
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f7",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.795Z,
+ "email": null,
+ "github": "",
+ "id": "u7",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.795Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Test User",
+ "orcidConsent": null,
+ "updatedAt": 2023-01-05T00:00:00.000Z,
+ },
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f1",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.793Z,
+ "email": null,
+ "github": "",
+ "id": "u1",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.793Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Alice Admin",
+ "orcid": "0000-0000-0000-0001",
+ "orcidConsent": null,
+ "provider": "orcid",
+ "providerId": "0000-0000-0000-0001",
+ "updatedAt": 2023-01-05T00:00:00.000Z,
+ },
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f2",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.793Z,
+ "email": null,
+ "github": "",
+ "id": "u2",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.793Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Test User",
+ "orcidConsent": null,
+ "provider": "google",
+ "providerId": "google2",
+ "updatedAt": 2023-01-04T00:00:00.000Z,
+ },
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f3",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.794Z,
+ "email": null,
+ "github": "",
+ "id": "u3",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.794Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Test User",
+ "orcidConsent": null,
+ "provider": "orcid",
+ "providerId": "0000-0000-0000-0003",
+ "updatedAt": 2023-01-03T00:00:00.000Z,
+ },
+ {
+ "__v": 0,
+ "_id": "60f0f0f0f0f0f0f0f0f0f0f4",
+ "admin": null,
+ "blocked": null,
+ "created": 2025-11-05T21:03:09.794Z,
+ "email": null,
+ "github": "",
+ "id": "u4",
+ "institution": "",
+ "lastSeen": 2025-11-05T21:03:09.794Z,
+ "links": [],
+ "location": "",
+ "migrated": false,
+ "name": "Test Admin User",
+ "orcid": "0000-0000-0000-0004",
+ "orcidConsent": null,
+ "provider": "orcid",
+ "providerId": "0000-0000-0000-0004",
+ "updatedAt": 2023-01-02T00:00:00.000Z,
+ },
+ ],
}
❯ packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts:137:52
|
Loading