Untitled

 avatar
unknown
plain_text
a year ago
391 B
8
Indexable
// PASTECODE DA MODEL

  it('Deve ser possível remover um produto', async function () {
    const stub = sinon.stub(ProductsModel, 'removeProduct').returns({ status: 200, data: 'Product deleted successfully' });

    const product = await ProductsModel.removeProduct(1);

    expect(product).to.be.deep.equal({ status: 200, data: 'Product deleted successfully' });
    stub.restore();
  });
Editor is loading...
Leave a Comment