Skip to content

Commit 8483679

Browse files
committed
update test
unfortunately, mockStates does not have "satisfies OverallState"
1 parent 14c8eb7 commit 8483679

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/commons/sagas/BackendSaga.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function* routerNavigate(path: string) {
121121
const newBackendSagaOne = combineSagaHandlers({
122122
[SessionActions.fetchAuth.type]: function* (action): any {
123123
const { code, providerId: payloadProviderId } = action.payload;
124-
const isVscode = yield select(state => state.vscode.isVscode);
124+
const isVscode: boolean = yield select((state: OverallState) => state.vscode.isVscode);
125125

126126
const providerId = payloadProviderId || (getDefaultProvider() || [null])[0];
127127
if (!providerId) {

src/commons/sagas/__tests__/BackendSaga.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ const mockStates = {
255255
},
256256
workspaces: {
257257
assessment: { currentAssessment: mockAssessment.id }
258+
},
259+
vscode: {
260+
isVscode: false
258261
}
259262
};
260263

0 commit comments

Comments
 (0)