Skip to content

Commit

Permalink
Actually impl test
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipb committed Jan 17, 2025
1 parent d23bb7f commit 0b2a00e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const codefixes: CodeFixAction[] = [

test("should merge text changes in order", () => {
const result = getTextChangeDict(codefixes);
console.log(result.get('foo.ts'));
result.get('foo.ts');
expect(result).toBeDefined();
const changes = result.get('foo.ts');
const spanStarts = changes?.map(c => c.span.start);
expect(spanStarts).toEqual([1, 2, 3, 8]);
})

0 comments on commit 0b2a00e

Please sign in to comment.