2017-01-21 17:10:27 +00:00
|
|
|
import 'typings-test'
|
|
|
|
|
|
|
|
import * as beautycolor from '../dist/index'
|
|
|
|
|
|
|
|
describe('beautycolor', function(){
|
|
|
|
it('should produce a blue font', function(){
|
|
|
|
console.log(beautycolor.coloredString('this is a blue font, no background', 'blue'))
|
|
|
|
})
|
|
|
|
it('should produce a red string with green background', function(){
|
|
|
|
console.log(beautycolor.coloredString('this is a red font with green background', 'red','green'))
|
|
|
|
})
|
|
|
|
it('should produce different font colors', function(){
|
|
|
|
console.log(
|
|
|
|
beautycolor.coloredString('blue','blue'),
|
|
|
|
beautycolor.coloredString('brown','brown'),
|
|
|
|
beautycolor.coloredString('red','red'),
|
|
|
|
beautycolor.coloredString('orange','orange'),
|
|
|
|
beautycolor.coloredString('green', 'green'),
|
2017-01-21 18:46:51 +00:00
|
|
|
beautycolor.coloredString('pink', 'pink'),
|
2017-01-21 17:10:27 +00:00
|
|
|
beautycolor.coloredString('cyan', 'cyan')
|
|
|
|
)
|
|
|
|
})
|
|
|
|
it('should produce different baclground colors', function(){
|
|
|
|
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'),
|
2017-01-21 18:46:51 +00:00
|
|
|
beautycolor.coloredString('pink', 'white', 'pink'),
|
2017-01-21 17:10:27 +00:00
|
|
|
beautycolor.coloredString('cyan', 'white', 'cyan')
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|