Skip to content

Commit 34dfa90

Browse files
author
AJ Keller
committed
Tests passing with new version
1 parent 69bebb0 commit 34dfa90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: test/openBCIUtilities-test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const sinon = require('sinon');
99
const chai = require('chai');
1010
const expect = chai.expect;
1111
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
1313

1414
const chaiAsPromised = require('chai-as-promised');
1515
const 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

Comments
 (0)