chore: Clean up some code (#12287)

This commit is contained in:
Tomi Turtiainen
2024-12-30 16:32:09 +02:00
committed by GitHub
parent 67145b98e2
commit f08db47077
3 changed files with 16 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ const validSerializedBuffer: SerializedBuffer = {
data: [65, 66, 67], // Corresponds to 'ABC' in ASCII
};
describe('serializedBufferToBuffer', () => {
describe('toBuffer', () => {
it('should convert a SerializedBuffer to a Buffer', () => {
const buffer = toBuffer(validSerializedBuffer);
expect(buffer).toBeInstanceOf(Buffer);
@@ -43,7 +43,7 @@ describe('isSerializedBuffer', () => {
});
});
describe('Integration: serializedBufferToBuffer and isSerializedBuffer', () => {
describe('Integration: toBuffer and isSerializedBuffer', () => {
it('should correctly validate and convert a SerializedBuffer', () => {
if (isSerializedBuffer(validSerializedBuffer)) {
const buffer = toBuffer(validSerializedBuffer);