ansi-to-html
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -168,3 +168,3 @@ 'use strict'; | ||
22: function _() { | ||
return closeTag(stack, 'b'); | ||
return pushStyle(stack, 'font-weight:normal'); | ||
}, | ||
@@ -171,0 +171,0 @@ 23: function _() { |
{ | ||
"name": "ansi-to-html", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "Convert ansi escaped text streams to html.", | ||
@@ -5,0 +5,0 @@ "main": "lib/ansi_to_html.js", |
@@ -277,16 +277,2 @@ /* globals describe, it*/ | ||
it('renders un-bold code appropriately', function (done) { | ||
const text = '\x1b[1mHello\x1b[22m World'; | ||
const result = '<b>Hello</b> World'; | ||
return test(text, result, done); | ||
}); | ||
it('skips rendering un-bold code appropriately', function (done) { | ||
const text = 'Hello\x1b[22m World'; | ||
const result = 'Hello World'; | ||
return test(text, result, done); | ||
}); | ||
it('renders un-italic code appropriately', function (done) { | ||
@@ -305,3 +291,3 @@ const text = '\x1b[3mHello\x1b[23m World'; | ||
}); | ||
it('renders overline', function (done) { | ||
@@ -313,2 +299,9 @@ const text = '\x1b[53mHello World'; | ||
}); | ||
it('renders normal text', function (done) { | ||
const text = '\x1b[1m\x1b[36mname\x1b[22m|'; | ||
const result = '<b><span style="color:#0AA">name<span style="font-weight:normal">|</span></span></b>'; | ||
return test(text, result, done); | ||
}); | ||
}); | ||
@@ -315,0 +308,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37174
882