fix(test): Add logging for rendered text outputs in test cases

This commit is contained in:
2025-01-14 17:52:40 +01:00
parent 7ea4324ff8
commit eb631ae97e
3 changed files with 11 additions and 3 deletions

View File

@ -9,8 +9,9 @@ tap.test('setup', async () => {
});
tap.test('should render text with the default font', async () => {
const text = "Hello, World!";
const result = await testFiglet.renderDefault(text);
const text = "serve.zone";
const result = await testFiglet.renderDefault(text, '');
console.log(result);
expect(result).toBeTruthy();
});
@ -18,6 +19,7 @@ tap.test('should render text with a specific font', async () => {
const text = "Fancy Text";
const font = "Ghost";
const result = await testFiglet.renderText(text, font);
console.log(result);
expect(result).toBeTruthy();
});