Skip to content

Commit c8b8471

Browse files
committed
fix
1 parent 6be3252 commit c8b8471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/parser/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
scopeToJSON,
1313
} from "./test-utils";
1414
import type { Comment, SvelteProgram, Token } from "../../../src/ast";
15-
import { sort } from "../../../src/parser/sort";
15+
import { sortNodes } from "../../../src/parser/sort";
1616

1717
function parse(code: string, filePath: string) {
1818
return parseForESLint(code, {
@@ -81,7 +81,7 @@ describe("Check for AST.", () => {
8181
});
8282

8383
function checkTokens(ast: SvelteProgram, input: string) {
84-
const allTokens = sort([...ast.tokens, ...ast.comments]);
84+
const allTokens = sortNodes([...ast.tokens, ...ast.comments]);
8585

8686
// check loc
8787
for (const token of allTokens) {

0 commit comments

Comments
 (0)