chore: update javascript-relevant tests

This commit is contained in:
Amaan Qureshi 2024-02-02 08:47:33 -05:00
parent fadfa19be8
commit 422e74fbdb
No known key found for this signature in database
GPG key ID: E67890ADC4227273
3 changed files with 16 additions and 15 deletions

View file

@ -329,10 +329,11 @@ fn test_highlighting_empty_lines() {
fn test_highlighting_carriage_returns() {
let source = "a = \"a\rb\"\r\nb\r";
// FIXME(amaanq): figure why this changed w/ JS's grammar changes
assert_eq!(
&to_html(source, &JS_HIGHLIGHT).unwrap(),
&[
"<span class=variable>a</span> <span class=operator>=</span> <span class=string>&quot;a<span class=carriage-return></span>b&quot;</span>\n",
"<span class=variable>a</span> <span class=operator>=</span> <span class=string>&quot;a<span class=variable>b</span>&quot;</span>\n",
"<span class=variable>b</span>\n",
],
);