Skip to content

Commit 341a9c2

Browse files
committed
test(fws): assert the perWriteCheckpoints initializer default alongside changeCardDetail (CodeRabbit, B3a, #1375)
1 parent 94fea2f commit 341a9c2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,15 @@ describe("ExtensionStateContext", () => {
338338
}
339339
})
340340

341-
it("initializes the change-card detail default before hydration", () => {
341+
it("initializes the change-card defaults before hydration", () => {
342342
// The initializer itself (not a merge fixture) must carry the change-card
343-
// detail default: a regression that dropped it from
343+
// defaults: a regression that dropped either key from
344344
// createInitialExtensionState would otherwise stay hidden because the
345-
// merge tests supply the key manually.
345+
// merge tests supply the keys manually.
346346
const state = createInitialExtensionState()
347347

348348
expect(state.changeCardDetail).toBe("summary")
349+
expect(state.perWriteCheckpoints).toBe(true)
349350
})
350351

351352
it("updates apiConfiguration through setApiConfiguration", () => {

0 commit comments

Comments
 (0)