Run unit tests with coverage: node_modules/h3/dist/index.mjs#L71
Error: Not authorized ❯ createError node_modules/h3/dist/index.mjs:71:15 ❯ createError node_modules/nuxt/dist/app/composables/error.js:32:34 ❯ authorizeUser server/utils/authorization.ts:350:48 ❯ Object.endpoint server/api/experiments/[slug]/comments/index.post.ts:12:9 ❯ expectSuccess tests/helpers/utils.ts:137:20 ❯ tests/helpers/utils.ts:168:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, statusMessage: 'Not authorized' }
Run unit tests with coverage: tests/helpers/utils.ts#L138
AssertionError: expected false to strictly equal { items: [ { …(3) } ], …(1) } - Expected: { "items": [ { "id": "55a68388-d0b9-42b3-8745-5e9747be5c33", "text": "text", "user": { "id": "81ec4217-65cd-497a-a475-baf904acb6b6", "name": "name", }, }, ], "pagination": { "page": 1, "pageSize": 12, "total": 1, "totalPages": 1, }, } + Received: false ❯ expectSuccess tests/helpers/utils.ts:138:20 ❯ tests/helpers/utils.ts:201:7
Run unit tests with coverage: node_modules/h3/dist/index.mjs#L71
Error: Not authorized ❯ createError node_modules/h3/dist/index.mjs:71:15 ❯ createError node_modules/nuxt/dist/app/composables/error.js:32:34 ❯ authorizeUser server/utils/authorization.ts:350:48 ❯ Object.endpoint server/api/experiments/[slug]/comments/index.post.ts:12:9 ❯ expectSuccess tests/helpers/utils.ts:137:20 ❯ tests/helpers/utils.ts:168:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, statusMessage: 'Not authorized' }
Run unit tests with coverage: tests/helpers/utils.ts#L138
AssertionError: expected false to strictly equal { items: [ { …(3) } ], …(1) } - Expected: { "items": [ { "id": "55a68388-d0b9-42b3-8745-5e9747be5c33", "text": "text", "user": { "id": "81ec4217-65cd-497a-a475-baf904acb6b6", "name": "name", }, }, ], "pagination": { "page": 1, "pageSize": 12, "total": 1, "totalPages": 1, }, } + Received: false ❯ expectSuccess tests/helpers/utils.ts:138:20 ❯ tests/helpers/utils.ts:201:7