mejoradas las descripciones de los test
This commit is contained in:
parent
09e425c33c
commit
397872ee19
|
@ -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();
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue