@@ -9,7 +9,7 @@ const sinon = require('sinon');
99const chai = require ( 'chai' ) ;
1010const expect = chai . expect ;
1111const 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
1313
1414const chaiAsPromised = require ( 'chai-as-promised' ) ;
1515const dirtyChai = require ( 'dirty-chai' ) ;
@@ -303,7 +303,7 @@ describe('openBCIUtilities', function () {
303303 // Make a packet with a sample number that represents z axis
304304 packet = openBCIUtilities . samplePacketAccelTimeSynced ( 9 ) ;
305305 let isZAxis = openBCIUtilities . getFromTimePacketAccel ( packet , accelArray ) ;
306- expect ( isZAxis ) . to . be . false ( ) ;
306+ expect ( isZAxis ) . to . be . true ( ) ;
307307 } ) ;
308308 it ( `false if sample number is not sampleNumber % 10 === ${ k . OBCIAccelAxisZ } ` , function ( ) {
309309 // Make a packet that is anything but the z axis
@@ -348,23 +348,23 @@ describe('openBCIUtilities', function () {
348348 timeOffset : 0 ,
349349 accelArray
350350 } ) ;
351- sample . does . not . have . property ( 'accelData' ) ;
351+ expect ( sample ) . to . not . have . property ( 'accelData' ) ;
352352
353353 sample = openBCIUtilities . parsePacketTimeSyncedAccel ( {
354354 rawDataPacket : packet2 ,
355355 gains : defaultChannelSettingsArray ,
356356 timeOffset : 0 ,
357357 accelArray
358358 } ) ;
359- sample . does . not . have . property ( 'accelData' ) ;
359+ expect ( sample ) . to . not . have . property ( 'accelData' ) ;
360360
361361 sample = openBCIUtilities . parsePacketTimeSyncedAccel ( {
362362 rawDataPacket : packet3 ,
363363 gains : defaultChannelSettingsArray ,
364364 timeOffset : 0 ,
365365 accelArray
366366 } ) ;
367- sample . does . have . property ( 'accelData' ) ;
367+ expect ( sample ) . to . have . property ( 'accelData' ) ;
368368 } ) ;
369369 it ( "should convert raw numbers into g's with scale factor" , function ( ) {
370370 // Generate three packets, packets only get one axis value per packet
0 commit comments