fix(test): Add logging for rendered text outputs in test cases
This commit is contained in:
parent
7ea4324ff8
commit
eb631ae97e
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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)
|
## 2025-01-14 - 1.0.9 - fix(npm)
|
||||||
Updated package description and added more keywords for better visibility
|
Updated package description and added more keywords for better visibility
|
||||||
|
|
||||||
|
@ -9,8 +9,9 @@ tap.test('setup', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should render text with the default font', async () => {
|
tap.test('should render text with the default font', async () => {
|
||||||
const text = "Hello, World!";
|
const text = "serve.zone";
|
||||||
const result = await testFiglet.renderDefault(text);
|
const result = await testFiglet.renderDefault(text, '');
|
||||||
|
console.log(result);
|
||||||
expect(result).toBeTruthy();
|
expect(result).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -18,6 +19,7 @@ tap.test('should render text with a specific font', async () => {
|
|||||||
const text = "Fancy Text";
|
const text = "Fancy Text";
|
||||||
const font = "Ghost";
|
const font = "Ghost";
|
||||||
const result = await testFiglet.renderText(text, font);
|
const result = await testFiglet.renderText(text, font);
|
||||||
|
console.log(result);
|
||||||
expect(result).toBeTruthy();
|
expect(result).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/beautyfiglet',
|
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.'
|
description: 'A Node.js module for creating customizable ASCII art using figlet with options for different fonts and layouts.'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user