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
|
||||
|
||||
## 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
|
||||
|
||||
|
@ -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();
|
||||
});
|
||||
|
||||
|
@ -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.'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user