(maxBytes, { id, type, now })
| 53 | } |
| 54 | |
| 55 | function inboundTextForLineBytes(maxBytes, { id, type, now }) { |
| 56 | const baseLine = JSON.stringify(inboundRow({ id, type, text: '', now })) + '\n'; |
| 57 | const fillerBytes = maxBytes - Buffer.byteLength(baseLine, 'utf8'); |
| 58 | assert.ok(fillerBytes >= 0, 'test fixture base row must fit below max line bytes'); |
| 59 | return 'a'.repeat(fillerBytes); |
| 60 | } |
| 61 | |
| 62 | describe('generateUUIDv7', () => { |
| 63 | it('returns a valid UUID v7 format', () => { |
no test coverage detected