Skip to content

Commit aaa0a5d

Browse files
committed
fix(dev): fill args in constructor
1 parent 5e194ae commit aaa0a5d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

packages/core/src/test/amazonqFeatureDev/session/sessionState.test.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,27 @@ describe('sessionState', () => {
112112
codeGenerationRemainingIterationCount: 2,
113113
codeGenerationTotalIterationCount: 3,
114114
})
115+
116+
const currentCodeGenerationId = crypto.randomUUID()
115117
mockExportResultArchive = sinon.stub().resolves({ newFileContents: [], deletedFiles: [], references: [] })
116118

117119
const testAction = mockSessionStateAction()
118120
const state = new CodeGenState(testConfig, [], [], [], tabId, 0, {}, 2, 3)
119121
const result = await state.interact(testAction)
120122

121-
const nextState = new PrepareCodeGenState(testConfig, [], [], [], tabId, 1, 2, 3)
123+
const nextState = new PrepareCodeGenState(
124+
testConfig,
125+
[],
126+
[],
127+
[],
128+
tabId,
129+
1,
130+
2,
131+
3,
132+
undefined,
133+
currentCodeGenerationId,
134+
{}
135+
)
122136

123137
assert.deepStrictEqual(result, {
124138
nextState,

0 commit comments

Comments
 (0)