Skip to content

Commit 265e62d

Browse files
committed
test: fix broken tests
1 parent c46b609 commit 265e62d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/frontend/src/app/core/state/proposal/proposal.service.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type ProposalServiceMock = jasmine.SpyObj<ProposalService>;
44

55
export function proposalServiceMockFactory(): ProposalServiceMock {
66
return jasmine.createSpyObj<ProposalServiceMock>('ProposalService', [
7-
'loadProposalList',
7+
'loadProposals',
88
'setCurrentProposalId',
99
]);
1010
}

src/frontend/src/app/pages/proposal-list/proposal-list.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('ProposalListComponent', () => {
2727

2828
beforeEach(async () => {
2929
proposalServiceMock = proposalServiceMockFactory();
30-
defineProp(proposalServiceMock, 'currentProposalList$', of([]));
30+
defineProp(proposalServiceMock, 'currentProposals$', of([]));
3131

3232
profileServiceMock = profileServiceMockFactory();
3333
defineProp(profileServiceMock, 'isCurrentUserReviewer$', of(true));

src/nns-testing/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ async function createNeuron(config: Config): Promise<bigint> {
185185
}
186186

187187
async function syncMainnetProposal(config: Config): Promise<void> {
188-
console.log('Config', config);
189188
const spinner = ora().start();
190189
const identity = await getOrCreateIdentity(config.identity, spinner);
191190
const neuronId = await getOrCreateNeuron(identity, config, spinner);
@@ -297,7 +296,5 @@ async function getOrCreateNeuron(
297296
neuronId = BigInt(config.neuronId);
298297
}
299298

300-
console.log('Neuron id', neuronId);
301-
302299
return neuronId;
303300
}

0 commit comments

Comments
 (0)