From ccc8fae1b14bf314748a93d4e522bfde145a59fe Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Tue, 20 Nov 2018 11:54:00 +0100 Subject: [PATCH] minor refactor --- .../common/methods/ticket/specs/isEditable.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/loopback/common/methods/ticket/specs/isEditable.spec.js b/services/loopback/common/methods/ticket/specs/isEditable.spec.js index 08f563e26..b7ec7317a 100644 --- a/services/loopback/common/methods/ticket/specs/isEditable.spec.js +++ b/services/loopback/common/methods/ticket/specs/isEditable.spec.js @@ -1,25 +1,25 @@ const app = require(`${servicesDir}/ticket/server/server`); describe('ticket isEditable()', () => { - it('should return false if the ticket given is not editable', async() => { + it('should return false if the ticket given is not editable', async () => { let result = await app.models.Ticket.isEditable(2); expect(result).toEqual(false); }); - it('should return false if the ticket given does not exists', async() => { + it('should return false if the ticket given does not exist', async () => { let result = await app.models.Ticket.isEditable(99999); expect(result).toEqual(false); }); - it('should return false if the ticket given isDeleted', async() => { + it('should return false if the ticket given isDeleted', async () => { let result = await app.models.Ticket.isEditable(21); expect(result).toEqual(false); }); - it('should return true if the ticket given is editable', async() => { + it('should return true if the ticket given is editable', async () => { let result = await app.models.Ticket.isEditable(16); expect(result).toEqual(true);