2 Commits

Author SHA1 Message Date
62a9b0e475 1.0.10 2025-01-14 17:52:40 +01:00
eb631ae97e fix(test): Add logging for rendered text outputs in test cases 2025-01-14 17:52:40 +01:00
4 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 2025-01-14 - 1.0.10 - fix(test)
Add logging for rendered text outputs in test cases
- Added console.log statements for outputs of rendered ASCII art in test cases.
- Ensure the correctness of rendering operations by outputting results during tests.
## 2025-01-14 - 1.0.9 - fix(npm)
Updated package description and added more keywords for better visibility

View File

@ -1,6 +1,6 @@
{
"name": "@push.rocks/beautyfiglet",
"version": "1.0.9",
"version": "1.0.10",
"description": "A Node.js module for creating customizable ASCII art using figlet with options for different fonts and layouts.",
"exports": {
".": "./dist_ts/index.js"

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();
});

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/beautyfiglet',
version: '1.0.9',
version: '1.0.10',
description: 'A Node.js module for creating customizable ASCII art using figlet with options for different fonts and layouts.'
}