fix(documentation): improve readme with comprehensive examples and formatting
- Enhanced readme with detailed API documentation - Added real-world usage examples and best practices - Updated legal section to Task Venture Capital GmbH - Updated CI/CD workflow configurations - Updated dependencies to latest versions - Removed obsolete gitlab-ci.yml
This commit is contained in:
18
test/test.ts
18
test/test.ts
@@ -1,14 +1,20 @@
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
import * as consolecolor from '../ts/index.js';
|
||||
|
||||
tap.test('should produce a blue font', async () => {
|
||||
console.log(consolecolor.coloredString('this is a blue font, no background', 'blue'));
|
||||
console.log(
|
||||
consolecolor.coloredString('this is a blue font, no background', 'blue'),
|
||||
);
|
||||
});
|
||||
|
||||
tap.test('should produce a red string with green background', async () => {
|
||||
console.log(
|
||||
consolecolor.coloredString('this is a red font with green background', 'red', 'green')
|
||||
consolecolor.coloredString(
|
||||
'this is a red font with green background',
|
||||
'red',
|
||||
'green',
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -20,7 +26,7 @@ tap.test('should produce different font colors', async () => {
|
||||
consolecolor.coloredString('orange', 'orange'),
|
||||
consolecolor.coloredString('green', 'green'),
|
||||
consolecolor.coloredString('pink', 'pink'),
|
||||
consolecolor.coloredString('cyan', 'cyan')
|
||||
consolecolor.coloredString('cyan', 'cyan'),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -32,8 +38,8 @@ tap.test('should produce different background colors', async () => {
|
||||
consolecolor.coloredString('orange', 'white', 'orange'),
|
||||
consolecolor.coloredString('green', 'white', 'green'),
|
||||
consolecolor.coloredString('pink', 'white', 'pink'),
|
||||
consolecolor.coloredString('cyan', 'white', 'cyan')
|
||||
consolecolor.coloredString('cyan', 'white', 'cyan'),
|
||||
);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
|
Reference in New Issue
Block a user