CRICDatabase / searchable-image-database-nodejs

Backend in Node.js for CRIC Searchable Image Database
GNU Affero General Public License v3.0
1 stars 5 forks source link

Implement DELETE /api/v1/imagens/id_imagem #169

Closed rgaiacs closed 4 years ago

rgaiacs commented 4 years ago
  ● DELETE /api/v1/imagens/6 (own by admin) › charles
    expect(received).toBe(expected) // Object.is equality
    Expected: 403
    Received: 501
      1423 |                     .then(
      1424 |                         response => {
    > 1425 |                             expect(response.statusCode).toBe(HttpStatus.FORBIDDEN);
           |                                                         ^
      1426 |                         }
      1427 |                     );
      1428 |             }
      at src/__tests__/image.js:1425:57
          at runMicrotasks (<anonymous>)
  ● DELETE /api/v1/imagens/6 (own by admin) › admin
    expect(received).toBe(expected) // Object.is equality
    Expected: 204
    Received: 501
      1440 |                     .then(
      1441 |                         response => {
    > 1442 |                             expect(response.statusCode).toBe(HttpStatus.NO_CONTENT);
           |                                                         ^
      1443 |                         }
      1444 |                     );
      1445 |             }
      at src/__tests__/image.js:1442:57
          at runMicrotasks (<anonymous>)
  ● DELETE /api/v1/imagens/7 (own by Charles) › charles
    expect(received).toBe(expected) // Object.is equality
    Expected: 204
    Received: 501
      1475 |                     .then(
      1476 |                         response => {
    > 1477 |                             expect(response.statusCode).toBe(HttpStatus.NO_CONTENT);
           |                                                         ^
      1478 |                         }
      1479 |                     );
      1480 |             }
      at src/__tests__/image.js:1477:57
          at runMicrotasks (<anonymous>)
  ● DELETE /api/v1/imagens/8 (own by Charles) › admin
    expect(received).toBe(expected) // Object.is equality
    Expected: 204
    Received: 501
      1500 |                     .then(
      1501 |                         response => {
    > 1502 |                             expect(response.statusCode).toBe(HttpStatus.NO_CONTENT);
           |                                                         ^
      1503 |                         }
      1504 |                     );
      1505 |             }
      at src/__tests__/image.js:1502:57
          at runMicrotasks (<anonymous>)