fix(core): update

This commit is contained in:
2024-03-13 20:02:12 +01:00
parent 3357ca8c2b
commit 5e9bbfaf1b
14 changed files with 5989 additions and 931 deletions

View File

@@ -1,38 +1,38 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as beautycolor from '../ts/index';
import * as consolecolor from '../ts/index.js';
tap.test('should produce a blue font', async () => {
console.log(beautycolor.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(
beautycolor.coloredString('this is a red font with green background', 'red', 'green')
consolecolor.coloredString('this is a red font with green background', 'red', 'green')
);
});
tap.test('should produce different font colors', async () => {
console.log(
beautycolor.coloredString('blue', 'blue'),
beautycolor.coloredString('brown', 'brown'),
beautycolor.coloredString('red', 'red'),
beautycolor.coloredString('orange', 'orange'),
beautycolor.coloredString('green', 'green'),
beautycolor.coloredString('pink', 'pink'),
beautycolor.coloredString('cyan', 'cyan')
consolecolor.coloredString('blue', 'blue'),
consolecolor.coloredString('brown', 'brown'),
consolecolor.coloredString('red', 'red'),
consolecolor.coloredString('orange', 'orange'),
consolecolor.coloredString('green', 'green'),
consolecolor.coloredString('pink', 'pink'),
consolecolor.coloredString('cyan', 'cyan')
);
});
tap.test('should produce different background colors', async () => {
console.log(
beautycolor.coloredString('blue', 'white', 'blue'),
beautycolor.coloredString('brown', 'white', 'brown'),
beautycolor.coloredString('red', 'white', 'red'),
beautycolor.coloredString('orange', 'white', 'orange'),
beautycolor.coloredString('green', 'white', 'green'),
beautycolor.coloredString('pink', 'white', 'pink'),
beautycolor.coloredString('cyan', 'white', 'cyan')
consolecolor.coloredString('blue', 'white', 'blue'),
consolecolor.coloredString('brown', 'white', 'brown'),
consolecolor.coloredString('red', 'white', 'red'),
consolecolor.coloredString('orange', 'white', 'orange'),
consolecolor.coloredString('green', 'white', 'green'),
consolecolor.coloredString('pink', 'white', 'pink'),
consolecolor.coloredString('cyan', 'white', 'cyan')
);
});