Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 committed Nov 11, 2024
1 parent 2065f9f commit 6a71f7f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions server/test/services/free-mobile/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('FreeMobileService', () => {

beforeEach(() => {
axiosStub = {
get: async () => {
return { data: 'OK' };
get: async () => {
return { data: 'OK' };
},
};

Expand Down Expand Up @@ -44,7 +44,7 @@ describe('FreeMobileService', () => {
describe('start', () => {
it('should start service with success', async () => {
await freeMobileService.start();

assert.strictEqual(await gladys.variable.getValue('FREE_MOBILE_USERNAME', serviceId), 'validUsername');
assert.strictEqual(await gladys.variable.getValue('FREE_MOBILE_ACCESS_TOKEN', serviceId), 'validAccessToken');
});
Expand Down Expand Up @@ -86,15 +86,14 @@ describe('FreeMobileService', () => {
}
return null;
};

try {
await freeMobileService.start();
throw new Error('Expected ServiceNotConfiguredError to be thrown');
} catch (e) {
expect(e).instanceOf(ServiceNotConfiguredError);
}
});

});

describe('send', () => {
Expand Down Expand Up @@ -126,12 +125,11 @@ describe('FreeMobileService', () => {
expect(errorArgs[0]).to.equal('Error sending SMS:');
expect(errorArgs[1]).to.be.instanceOf(Error);
});

});

describe('stop', () => {
it('should stopping service', async () => {
await freeMobileService.stop();
});
});
});
});

0 comments on commit 6a71f7f

Please sign in to comment.