Update unit test to reflect javascript query change
This commit is contained in:
parent
9f77afcd1f
commit
c2e253a4c8
1 changed files with 3 additions and 3 deletions
|
|
@ -10,14 +10,14 @@ fn test_highlight_test_with_basic_test() {
|
|||
"javascript",
|
||||
"injections.scm",
|
||||
&[
|
||||
"function.definition".to_string(),
|
||||
"function".to_string(),
|
||||
"variable.parameter".to_string(),
|
||||
"keyword".to_string(),
|
||||
],
|
||||
);
|
||||
let source = [
|
||||
"var abc = function(d) {",
|
||||
" // ^ function.definition",
|
||||
" // ^ function",
|
||||
" // ^ keyword",
|
||||
" return d + e;",
|
||||
" // ^ variable.parameter",
|
||||
|
|
@ -29,7 +29,7 @@ fn test_highlight_test_with_basic_test() {
|
|||
assert_eq!(
|
||||
assertions,
|
||||
&[
|
||||
(Point::new(0, 5), "function.definition".to_string()),
|
||||
(Point::new(0, 5), "function".to_string()),
|
||||
(Point::new(0, 11), "keyword".to_string()),
|
||||
(Point::new(3, 9), "variable.parameter".to_string()),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue