Skip to content

Activities and tickets! #604

Activities and tickets!

Activities and tickets! #604

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Mar 11, 2024 in 0s

Test suite run failed

Failed tests: 1/211. Failed suites: 5/22.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Adding and removing activities

    expect(received).rejects.toThrowError(expected)

    Expected constructor: BadRequestError
    Received constructor: NotFoundError

    Received message: "Kunde inte hitta denna aktivitet!"

          16 |
          17 |     if (a == null) {
        > 18 |       throw new NotFoundError('Kunde inte hitta denna aktivitet!');
             |             ^
          19 |     }
          20 |
          21 |     return a;

      at ActivityAPI.getActivity (src/api/activity.api.ts:18:13)
      at ActivityAPI.removeActivity (src/api/activity.api.ts:108:15)
      at Object.<anonymous> (test/unit/activity.api.test.ts:133:3)
      at Object.toThrowError (node_modules/expect/build/index.js:210:22)
      at Object.<anonymous> (test/unit/activity.api.test.ts:133:64)


  ● Test suite failed to run

    src/resolvers/activity.resolver.ts:27:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    27       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:32:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    32       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:37:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    37       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~


  ● Test suite failed to run

    src/resolvers/activity.resolver.ts:27:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    27       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:32:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    32       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:37:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    37       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~


  ● Test suite failed to run

    src/resolvers/activity.resolver.ts:27:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    27       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:32:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    32       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:37:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    37       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~


  ● Test suite failed to run

    src/resolvers/activity.resolver.ts:27:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    27       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:32:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    32       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~
    src/resolvers/activity.resolver.ts:37:36 - error TS2339: Property 'ActivityAdmin' does not exist on type 'typeof Feature'.

    37       await hasAccess(ctx, Feature.ActivityAdmin);
                                          ~~~~~~~~~~~~~

Annotations

Check failure on line 118 in test/unit/activity.api.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Adding and removing activities

Error: expect(received).rejects.toThrowError(expected)

Expected constructor: BadRequestError
Received constructor: NotFoundError

Received message: "Kunde inte hitta denna aktivitet!"

      16 |
      17 |     if (a == null) {
    > 18 |       throw new NotFoundError('Kunde inte hitta denna aktivitet!');
         |             ^
      19 |     }
      20 |
      21 |     return a;

      at ActivityAPI.getActivity (src/api/activity.api.ts:18:13)
      at ActivityAPI.removeActivity (src/api/activity.api.ts:108:15)
      at Object.<anonymous> (test/unit/activity.api.test.ts:133:3)
    at Object.toThrowError (/__w/ekorre/ekorre/node_modules/expect/build/index.js:210:22)
    at Object.<anonymous> (/__w/ekorre/ekorre/test/unit/activity.api.test.ts:133:64)