add encoder for channel-block

This commit is contained in:
2025-03-15 13:08:37 -05:00
parent 1c8536e27a
commit f8f3f060dc
3 changed files with 24 additions and 1 deletions
+9 -1
View File
@@ -2,7 +2,15 @@ const { deepEqual, throws } = require('assert');
const { describe, it } = require('node:test');
const { Encoders } = require('../');
const goodTests = [];
const goodTests = [
{
description: 'Channel Block',
expected: new Uint8Array([0x00, 0x08, 0x00, 0x06, 0x40]),
bytes: () => {
return Encoders.ChannelBlock(8, 6, 64);
},
},
];
describe('RTTrPL Message Encoding', () => {
goodTests.forEach((messageTest) => {