Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Feb 3, 2023
1 parent 6be3252 commit c8b8471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
scopeToJSON,
} from "./test-utils";
import type { Comment, SvelteProgram, Token } from "../../../src/ast";
import { sort } from "../../../src/parser/sort";
import { sortNodes } from "../../../src/parser/sort";

function parse(code: string, filePath: string) {
return parseForESLint(code, {
Expand Down Expand Up @@ -81,7 +81,7 @@ describe("Check for AST.", () => {
});

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

// check loc
for (const token of allTokens) {
Expand Down

0 comments on commit c8b8471

Please sign in to comment.