diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-09-20 23:57:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 23:57:32 -0400 |
commit | b3e8fe9cfc34d2aa87e43288efd5659f31dec046 (patch) | |
tree | 3ae6faec12755f12358af799f08b5bc42ac8eab6 /cli/src/tests/test_highlight_test.rs | |
parent | 3a8d4311bea0ea9abc3f5e15c5cb5a7390d32edc (diff) | |
parent | ef9cabd4b5e1eda9d5d3b9377f2bee4e781dafdf (diff) |
Merge pull request #2636 from amaanq/js-update
fix: update javascript tests and use cpp/javascript master for fixtures
Diffstat (limited to 'cli/src/tests/test_highlight_test.rs')
-rw-r--r-- | cli/src/tests/test_highlight_test.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/src/tests/test_highlight_test.rs b/cli/src/tests/test_highlight_test.rs index d9b2c43a..06ad7d59 100644 --- a/cli/src/tests/test_highlight_test.rs +++ b/cli/src/tests/test_highlight_test.rs @@ -12,7 +12,7 @@ fn test_highlight_test_with_basic_test() { Some("injections.scm"), &[ "function".to_string(), - "variable.parameter".to_string(), + "variable".to_string(), "keyword".to_string(), ], ); @@ -22,7 +22,7 @@ fn test_highlight_test_with_basic_test() { " // ^ function", " // ^ keyword", " return d + e;", - " // ^ variable.parameter", + " // ^ variable", " // ^ !variable", "};", ] @@ -35,7 +35,7 @@ fn test_highlight_test_with_basic_test() { &[ Assertion::new(1, 5, false, String::from("function")), Assertion::new(1, 11, false, String::from("keyword")), - Assertion::new(4, 9, false, String::from("variable.parameter")), + Assertion::new(4, 9, false, String::from("variable")), Assertion::new(4, 11, true, String::from("variable")), ] ); @@ -53,6 +53,7 @@ fn test_highlight_test_with_basic_test() { (Point::new(1, 19), Point::new(1, 20), Highlight(1)), // "d" (Point::new(4, 2), Point::new(4, 8), Highlight(2)), // "return" (Point::new(4, 9), Point::new(4, 10), Highlight(1)), // "d" + (Point::new(4, 13), Point::new(4, 14), Highlight(1)), // "e" ] ); } |