BREAKING CHANGE(package): change scope and name
This commit is contained in:
24
test/test.ts
24
test/test.ts
@ -1,14 +1,16 @@
|
||||
import { expect, tap } from 'tapbundle'
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
|
||||
import * as beautycolor from '../ts/index'
|
||||
import * as beautycolor from '../ts/index';
|
||||
|
||||
tap.test('should produce a blue font', async () => {
|
||||
console.log(beautycolor.coloredString('this is a blue font, no background', 'blue'))
|
||||
})
|
||||
console.log(beautycolor.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'))
|
||||
})
|
||||
console.log(
|
||||
beautycolor.coloredString('this is a red font with green background', 'red', 'green')
|
||||
);
|
||||
});
|
||||
|
||||
tap.test('should produce different font colors', async () => {
|
||||
console.log(
|
||||
@ -19,8 +21,8 @@ tap.test('should produce different font colors', async () => {
|
||||
beautycolor.coloredString('green', 'green'),
|
||||
beautycolor.coloredString('pink', 'pink'),
|
||||
beautycolor.coloredString('cyan', 'cyan')
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
tap.test('should produce different background colors', async () => {
|
||||
console.log(
|
||||
@ -31,7 +33,7 @@ tap.test('should produce different background colors', async () => {
|
||||
beautycolor.coloredString('green', 'white', 'green'),
|
||||
beautycolor.coloredString('pink', 'white', 'pink'),
|
||||
beautycolor.coloredString('cyan', 'white', 'cyan')
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
tap.start()
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user