mejoradas las descripciones de los test

This commit is contained in:
Javi Gallego 2020-04-08 13:15:07 +02:00
parent 09e425c33c
commit 397872ee19
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ describe('Ticket descriptor path', () => {
expect(nResults).toEqual(5);
});
it('should check update/delete the agency of weekly ticket 1', async() => {
it('should update the agency then remove it afterwards', async() => {
await page.autocompleteSearch(selectors.ticketsIndex.firstWeeklyTicketAgency, 'Silla247');
let result = await page.waitForLastSnackbar();

View File

@ -16,7 +16,7 @@ describe('ticket weekly', () => {
}));
describe('onUpdate()', () => {
it('should make a query and vnApp.showSuccess()', () => {
it('should make a query a PATCH querye then call vnApp.showSuccess()', () => {
jest.spyOn(controller.vnApp, 'showSuccess');
$httpBackend.expectPATCH(`TicketWeeklies`).respond();
@ -28,7 +28,7 @@ describe('ticket weekly', () => {
});
describe('onDeleteWeeklyAccept()', () => {
it('should make a query and showSuccess()', () => {
it('should make a DELETE query then call showSuccess(), afterwards checks that remove returns value 0', () => {
controller.$.model = crudModel;
controller.$.model.data = [{ticketFk: 'ticketFk'}];
jest.spyOn(controller.vnApp, 'showSuccess');