Skip to content

Commit 34fa2e4

Browse files
committed
test(bus): fix tests descriptions
1 parent a580dec commit 34fa2e4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/lib/Bus.spec.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Bus', () => {
4040
});
4141

4242
describe('close', () => {
43-
it("should call i2c-bus' close functions", async () => {
43+
it("should call i2c-bus' close function", async () => {
4444
const i2cBus = await openPromisified(1);
4545
const bus = await new Bus({ busNumber: 1 }).open();
4646

@@ -59,7 +59,7 @@ describe('Bus', () => {
5959
});
6060

6161
describe('i2cFuncs', () => {
62-
it("should call i2c-bus' i2cFuncs functions", async () => {
62+
it("should call i2c-bus' i2cFuncs function", async () => {
6363
const i2cBus = await openPromisified(1);
6464
const bus = await new Bus({ busNumber: 1 }).open();
6565

@@ -79,7 +79,7 @@ describe('Bus', () => {
7979
describe('readByte', () => {
8080
const address = 0x1;
8181
const command = 0x2;
82-
it("should call i2c-bus' readByte functions", async () => {
82+
it("should call i2c-bus' readByte function", async () => {
8383
const i2cBus = await openPromisified(1);
8484
const bus = await new Bus({ busNumber: 1 }).open();
8585

@@ -101,7 +101,7 @@ describe('Bus', () => {
101101
describe('readWord', () => {
102102
const address = 0x1;
103103
const command = 0x2;
104-
it("should call i2c-bus' readWord functions", async () => {
104+
it("should call i2c-bus' readWord function", async () => {
105105
const i2cBus = await openPromisified(1);
106106
const bus = await new Bus({ busNumber: 1 }).open();
107107

@@ -125,7 +125,7 @@ describe('Bus', () => {
125125
const command = 0x2;
126126
const length = 3;
127127
const buffer = Buffer.alloc(0);
128-
it("should call i2c-bus' readI2cBlock functions", async () => {
128+
it("should call i2c-bus' readI2cBlock function", async () => {
129129
const i2cBus = await openPromisified(1);
130130
const bus = await new Bus({ busNumber: 1 }).open();
131131

@@ -151,7 +151,7 @@ describe('Bus', () => {
151151

152152
describe('receiveByte', () => {
153153
const address = 0x1;
154-
it("should call i2c-bus' receiveByte functions", async () => {
154+
it("should call i2c-bus' receiveByte function", async () => {
155155
const i2cBus = await openPromisified(1);
156156
const bus = await new Bus({ busNumber: 1 }).open();
157157

@@ -173,7 +173,7 @@ describe('Bus', () => {
173173
describe('sendByte', () => {
174174
const address = 0x1;
175175
const byte = 0x2;
176-
it("should call i2c-bus' sendByte functions", async () => {
176+
it("should call i2c-bus' sendByte function", async () => {
177177
const i2cBus = await openPromisified(1);
178178
const bus = await new Bus({ busNumber: 1 }).open();
179179

@@ -196,7 +196,7 @@ describe('Bus', () => {
196196
const address = 0x1;
197197
const command = 0x2;
198198
const byte = 0x3;
199-
it("should call i2c-bus' writeByte functions", async () => {
199+
it("should call i2c-bus' writeByte function", async () => {
200200
const i2cBus = await openPromisified(1);
201201
const bus = await new Bus({ busNumber: 1 }).open();
202202

@@ -223,7 +223,7 @@ describe('Bus', () => {
223223
const address = 0x1;
224224
const command = 0x2;
225225
const word = 0x3;
226-
it("should call i2c-bus' writeWord functions", async () => {
226+
it("should call i2c-bus' writeWord function", async () => {
227227
const i2cBus = await openPromisified(1);
228228
const bus = await new Bus({ busNumber: 1 }).open();
229229

@@ -249,7 +249,7 @@ describe('Bus', () => {
249249
describe('writeQuick', () => {
250250
const address = 0x1;
251251
const bit = 0x0;
252-
it("should call i2c-bus' writeQuick functions", async () => {
252+
it("should call i2c-bus' writeQuick function", async () => {
253253
const i2cBus = await openPromisified(1);
254254
const bus = await new Bus({ busNumber: 1 }).open();
255255

@@ -273,7 +273,7 @@ describe('Bus', () => {
273273
const command = 0x2;
274274
const length = 3;
275275
const buffer = Buffer.alloc(0);
276-
it("should call i2c-bus' writeI2cBlock functions", async () => {
276+
it("should call i2c-bus' writeI2cBlock function", async () => {
277277
const i2cBus = await openPromisified(1);
278278
const bus = await new Bus({ busNumber: 1 }).open();
279279

@@ -300,7 +300,7 @@ describe('Bus', () => {
300300
const address = 0x1;
301301
const length = 3;
302302
const buffer = Buffer.alloc(0);
303-
it("should call i2c-bus' i2cRead functions", async () => {
303+
it("should call i2c-bus' i2cRead function", async () => {
304304
const i2cBus = await openPromisified(1);
305305
const bus = await new Bus({ busNumber: 1 }).open();
306306

@@ -327,7 +327,7 @@ describe('Bus', () => {
327327
const address = 0x1;
328328
const length = 3;
329329
const buffer = Buffer.alloc(0);
330-
it("should call i2c-bus' i2cWrite functions", async () => {
330+
it("should call i2c-bus' i2cWrite function", async () => {
331331
const i2cBus = await openPromisified(1);
332332
const bus = await new Bus({ busNumber: 1 }).open();
333333

@@ -354,7 +354,7 @@ describe('Bus', () => {
354354
describe('scan', () => {
355355
const startAddress = 0x1;
356356
const endAddress = 0x2;
357-
it("should call i2c-bus' scan functions", async () => {
357+
it("should call i2c-bus' scan function", async () => {
358358
const i2cBus = await openPromisified(1);
359359
const bus = await new Bus({ busNumber: 1 }).open();
360360

@@ -375,7 +375,7 @@ describe('Bus', () => {
375375

376376
describe('deviceId', () => {
377377
const address = 0x1;
378-
it("should call i2c-bus' deviceId functions", async () => {
378+
it("should call i2c-bus' deviceId function", async () => {
379379
const i2cBus = await openPromisified(1);
380380
const bus = await new Bus({ busNumber: 1 }).open();
381381

0 commit comments

Comments
 (0)