User profiles #100
Annotations
10 errors
|
test
Process completed with exit code 1.
|
|
TypeError: userController.getMe is not a function. (In 'userController.getMe(null)':
server/src/user/user.controller.spec.ts#L88
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:88:35)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:85:35)
|
|
TypeError: userController.getMe is not a function. (In 'userController.getMe(user)':
server/src/user/user.controller.spec.ts#L79
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:79:43)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:73:46)
|
|
TypeError: userController.getUserPaginated is not a function. (In 'userController.getUserPaginated(query)':
server/src/user/user.controller.spec.ts#L65
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:65:43)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.spec.ts:59:45)
|
|
TypeError: undefined is not an object (evaluating 'docs.data'):
server/src/user/user.controller.ts#L49
at getUser (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.controller.ts:49:13)
|
|
error: expect(received).toThrow(expected):
server/src/user/user.service.spec.ts#L170
Expected message: "You must provide an email or an id"
Received message: "You must provide an email, ID or username"
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:170:63)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:167:69)
|
|
error::
server/src/user/user.service.spec.ts#L159
Expected promise that rejects
Received promise that resolved: Promise { <resolved> }
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:159:63)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:156:57)
|
|
error: expect(received).toEqual(expected):
server/src/user/user.service.spec.ts#L152
+ UserProfileViewDto {
+ description: undefined,
+ lastSeen: undefined,
+ loginCount: undefined,
+ loginStreak: undefined,
+ playCount: undefined,
+ profileImage: undefined,
+ publicName: undefined,
+ socialLinks: undefined,
+ username: undefined,
- {
- _id: "test-id",
}
- Expected - 2
+ Received + 10
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:152:22)
|
|
error: expect(received).toEqual(expected):
server/src/user/user.service.spec.ts#L140
+ UserProfileViewDto {
+ description: undefined,
+ lastSeen: undefined,
+ loginCount: undefined,
+ loginStreak: undefined,
+ playCount: undefined,
+ profileImage: undefined,
+ publicName: undefined,
+ socialLinks: undefined,
+ username: undefined,
- {
- email: "test@example.com",
}
- Expected - 2
+ Received + 10
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:140:22)
|
|
TypeError: this.userModel.aggregate is not a function. (In 'this.userModel.aggregate([:
server/src/user/user.service.ts#L93
$match: queryText ? {
username: { $regex: queryText, $options: "i" }
} : {
_id: { $exists: !0 }
}
},
{
$lookup: {
from: "songs",
localField: "_id",
foreignField: "userId",
as: "songs"
}
},
{
$addFields: {
songCount: { $size: "$songs" }
}
},
{
$project: {
songs: 0
}
},
{
$sort: { [sort]: sortOrder }
},
{
$skip: skip
},
{
$limit: limit
}
])', 'this.userModel.aggregate' is undefined)
at getUserPaginated (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.ts:93:28)
at getUserPaginated (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.ts:84:33)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:124:36)
at <anonymous> (/home/runner/work/NoteBlockWorld/NoteBlockWorld/server/src/user/user.service.spec.ts:104:41)
|