fmt(js): npm run fix on merge (#98265)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c0875ba503
commit
60a4442826
@@ -1,6 +1,14 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { latestSessionTodos, mergeTodoItems, nextTodosFromToolEvent, parseTodoPatch, parseTodoRevision, parseTodos, todoTree } from './todos'
|
||||
import {
|
||||
latestSessionTodos,
|
||||
mergeTodoItems,
|
||||
nextTodosFromToolEvent,
|
||||
parseTodoPatch,
|
||||
parseTodoRevision,
|
||||
parseTodos,
|
||||
todoTree
|
||||
} from './todos'
|
||||
|
||||
describe('todoTree', () => {
|
||||
it('orders parents before children with depths', () => {
|
||||
|
||||
@@ -166,6 +166,7 @@ export function mergeTodoItems(current: readonly TodoItem[], patch: readonly Tod
|
||||
if (index === undefined) {
|
||||
next.push({ content: item.content?.trim() || '(no description)', id: item.id, status: item.status })
|
||||
indexById.set(item.id, next.length - 1)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user