Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] Add `partly bolded` test

  • Loading branch information...
commit 6c54400ea0a786ba6754d2792d748af80410da6c 1 parent ed4e28d
@mmalecki authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/ansiparse-test.js
View
7 test/ansiparse-test.js
@@ -33,6 +33,13 @@ var dataSets = {
input: 'hello world'.red.bold,
output: [{ text: 'hello world', bold: true, foreground: 'red' }]
},
+ 'partly bolded': {
+ input: 'hello '.bold + 'world'.red,
+ output: [
+ { text: 'hello ', bold: true },
+ { text: 'world', foreground: 'red', bold: false }
+ ]
+ },
noColor: {
input: 'hello world',
output: [{ text: 'hello world' }]
Please sign in to comment.
Something went wrong with that request. Please try again.