Updated unit tests
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f60c754c59
commit
68178bdb1f
|
@ -19,7 +19,6 @@ describe('vnInvoiceOutDescriptor', () => {
|
|||
controller.invoiceOut = invoiceOut;
|
||||
|
||||
$httpBackend.whenGET(`InvoiceOuts/${invoiceOut.id}`).respond();
|
||||
$httpBackend.whenGET(`Tickets/16`).respond();
|
||||
$httpBackend.expectPOST(`InvoiceOuts/${invoiceOut.id}/createPdf`).respond();
|
||||
controller.createInvoicePdf();
|
||||
$httpBackend.flush();
|
||||
|
|
|
@ -153,7 +153,7 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
|
|||
it('should make a query and show a success snackbar', () => {
|
||||
jest.spyOn(controller.vnApp, 'showSuccess');
|
||||
|
||||
$httpBackend.whenGET(`InvoiceOuts/${ticket.invoiceOut.id}`).respond();
|
||||
$httpBackend.whenGET(`Tickets/16`).respond();
|
||||
$httpBackend.expectPOST(`InvoiceOuts/${ticket.invoiceOut.id}/createPdf`).respond();
|
||||
controller.createInvoicePdf();
|
||||
$httpBackend.flush();
|
||||
|
|
Loading…
Reference in New Issue