Permalink
Browse files

[test] Add few more tests

  • Loading branch information...
1 parent d84bed6 commit 53182c289be760c08a4ff0c06dde9dde2bc78610 @mmalecki committed Nov 28, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/ansiparse-test.js
View
@@ -28,6 +28,14 @@ var dataSets = {
background: {
input: '\033\[42mhello world\033\[49m',
output: [{ text: 'hello world', background: 'green' }]
+ },
+ boldAndColor: {
+ input: 'hello world'.red.bold,
+ output: [{ text: 'hello world', bold: true, foreground: 'red' }]
+ },
+ noColor: {
+ input: 'hello world',
+ output: [{ text: 'hello world' }]
}
};

0 comments on commit 53182c2

Please sign in to comment.