mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 01:07:48 +02:00
added ability to supply --dark_bg to to html (#2189)
* added ability to supply --dark_bg to to html * fmt + fixed tests * updated other html tests * fmt
This commit is contained in:
@ -9,7 +9,10 @@ fn out_html_simple() {
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "<html><body>3</body></html>");
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
"<html><style>body { background-color:white;color:black; }</style><body>3</body></html>"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -23,6 +26,6 @@ fn out_html_table() {
|
||||
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
"<html><body><table><tr><th>name</th></tr><tr><td>jason</td></tr></table></body></html>"
|
||||
"<html><style>body { background-color:white;color:black; }</style><body><table style=\"background-color:white;color:black;\"><tr><th>name</th></tr><tr><td>jason</td></tr></table></body></html>"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user