Skip to content

Commit

Permalink
Update test suite to use more consistent api
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Jul 9, 2021
1 parent 2a12570 commit 6fb0246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/LayoutTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1499,17 +1499,17 @@ suite('Layout', function() {
assert.throws(() => new lo.BitField(bs, 40), Error);
});
suite('ctor argument processing', function() {
it('should infer property when passed string', function() {
test('should infer property when passed string', function() {
const bs = new lo.BitStructure(lo.u8(), 'flags');
assert.strictEqual(bs.msb, false);
assert.strictEqual(bs.property, 'flags');
});
it('should respect msb without property', function() {
test('should respect msb without property', function() {
const bs = new lo.BitStructure(lo.u8(), true);
assert.strictEqual(bs.msb, true);
assert.strictEqual(bs.property, undefined);
});
it('should accept msb with property', function() {
test('should accept msb with property', function() {
const bs = new lo.BitStructure(lo.u8(), 'flags', 'flags');
assert.strictEqual(bs.msb, true);
assert.strictEqual(bs.property, 'flags');
Expand Down

0 comments on commit 6fb0246

Please sign in to comment.