@@ -9,7 +9,7 @@ const sinon = require('sinon');
9
9
const chai = require ( 'chai' ) ;
10
10
const expect = chai . expect ;
11
11
const assert = chai . assert ;
12
- let should = chai . should ( ) ; // eslint-disable-line no-unused-lets
12
+ // let should = chai.should(); // eslint-disable-line no-unused-lets
13
13
14
14
const chaiAsPromised = require ( 'chai-as-promised' ) ;
15
15
const dirtyChai = require ( 'dirty-chai' ) ;
@@ -303,7 +303,7 @@ describe('openBCIUtilities', function () {
303
303
// Make a packet with a sample number that represents z axis
304
304
packet = openBCIUtilities . samplePacketAccelTimeSynced ( 9 ) ;
305
305
let isZAxis = openBCIUtilities . getFromTimePacketAccel ( packet , accelArray ) ;
306
- expect ( isZAxis ) . to . be . false ( ) ;
306
+ expect ( isZAxis ) . to . be . true ( ) ;
307
307
} ) ;
308
308
it ( `false if sample number is not sampleNumber % 10 === ${ k . OBCIAccelAxisZ } ` , function ( ) {
309
309
// Make a packet that is anything but the z axis
@@ -348,23 +348,23 @@ describe('openBCIUtilities', function () {
348
348
timeOffset : 0 ,
349
349
accelArray
350
350
} ) ;
351
- sample . does . not . have . property ( 'accelData' ) ;
351
+ expect ( sample ) . to . not . have . property ( 'accelData' ) ;
352
352
353
353
sample = openBCIUtilities . parsePacketTimeSyncedAccel ( {
354
354
rawDataPacket : packet2 ,
355
355
gains : defaultChannelSettingsArray ,
356
356
timeOffset : 0 ,
357
357
accelArray
358
358
} ) ;
359
- sample . does . not . have . property ( 'accelData' ) ;
359
+ expect ( sample ) . to . not . have . property ( 'accelData' ) ;
360
360
361
361
sample = openBCIUtilities . parsePacketTimeSyncedAccel ( {
362
362
rawDataPacket : packet3 ,
363
363
gains : defaultChannelSettingsArray ,
364
364
timeOffset : 0 ,
365
365
accelArray
366
366
} ) ;
367
- sample . does . have . property ( 'accelData' ) ;
367
+ expect ( sample ) . to . have . property ( 'accelData' ) ;
368
368
} ) ;
369
369
it ( "should convert raw numbers into g's with scale factor" , function ( ) {
370
370
// Generate three packets, packets only get one axis value per packet
0 commit comments