Skip to content

Commit 9489b63

Browse files
committed
Update test comments + eslint fix
1 parent 8845b8f commit 9489b63

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

test/lib.crypto.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-len */
12
const { expect } = require('chai');
23
const crypto = require('../src/lib/crypto');
34
const testData = require('./testData.json');
@@ -13,7 +14,6 @@ describe('Crypto library', () => {
1314
done();
1415
});
1516
it('expect the "decrypt" function to return the same object as original data', (done) => {
16-
// eslint-disable-next-line max-len
1717
expect(JSON.parse(crypto.decrypt(testData.encryptedSecret, testData.encryptionKey))).to.deep.equals(testData.secret);
1818
done();
1919
});

test/lib.logger.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ const logger = require('../src/lib/logger');
33

44
// Logger
55
describe('Logger library', () => {
6-
it('expect the "logger.info" function to be a function', (done) => {
6+
it('expect the "logger.info" to exists and be a function', (done) => {
77
expect(typeof (logger.info)).to.be.equals('function');
88
done();
99
});
1010
it('expect the "logger.info" function to not throw without an argument', (done) => {
1111
expect(logger.info).to.not.throw();
1212
done();
1313
});
14-
it('expect the "logger.warn" function to be a function', (done) => {
14+
it('expect the "logger.warn" to exists and be a function', (done) => {
1515
expect(typeof (logger.warn)).to.be.equals('function');
1616
done();
1717
});
1818
it('expect the "logger.warn" function to not throw without an argument', (done) => {
1919
expect(logger.warn).to.not.throw();
2020
done();
2121
});
22-
it('expect the "logger.error" function to be a function', (done) => {
22+
it('expect the "logger.error" to exists and be a function', (done) => {
2323
expect(typeof (logger.error)).to.be.equals('function');
2424
done();
2525
});
2626
it('expect the "logger.error" function to not throw without an argument', (done) => {
2727
expect(logger.error).to.not.throw();
2828
done();
2929
});
30-
it('expect the "logger.log" function to be a function', (done) => {
30+
it('expect the "logger.log" to exists and be a function', (done) => {
3131
expect(typeof (logger.log)).to.be.equals('function');
3232
done();
3333
});

0 commit comments

Comments
 (0)