We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be3252 commit c8b8471Copy full SHA for c8b8471
tests/src/parser/parser.ts
@@ -12,7 +12,7 @@ import {
12
scopeToJSON,
13
} from "./test-utils";
14
import type { Comment, SvelteProgram, Token } from "../../../src/ast";
15
-import { sort } from "../../../src/parser/sort";
+import { sortNodes } from "../../../src/parser/sort";
16
17
function parse(code: string, filePath: string) {
18
return parseForESLint(code, {
@@ -81,7 +81,7 @@ describe("Check for AST.", () => {
81
});
82
83
function checkTokens(ast: SvelteProgram, input: string) {
84
- const allTokens = sort([...ast.tokens, ...ast.comments]);
+ const allTokens = sortNodes([...ast.tokens, ...ast.comments]);
85
86
// check loc
87
for (const token of allTokens) {
0 commit comments