Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sameer Kumar Subudhi <[email protected]>
  • Loading branch information
nagdahimanshu and sameersubudhi authored Sep 19, 2023
1 parent ef2c1f1 commit eb75a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class LiskMigrator extends Command {
cli.action.start('Verifying if backup height from node config matches snapshot height');
if (snapshotHeight !== nodeInfo.backup.height) {
this.error(
`Lisk Core v3 backup height ${nodeInfo.backup.height} does not match the expected snapshot height of ${snapshotHeight}`,
`Lisk Core v3 backup height (${nodeInfo.backup.height}) does not match the expected snapshot height (${snapshotHeight}).`,
);
}
cli.action.stop('Snapshot height matches backup height');
Expand Down
4 changes: 2 additions & 2 deletions test/unit/utils/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ describe('Test resolveConfigPathByNetworkID method', () => {

describe('Test createBackup method', () => {
it('should create backup', async () => {
const backupPath = join(__dirname, '../../..', 'backup');
const expectedBackupPath = join(__dirname, '../../..', 'backup');
await createBackup((configV3 as unknown) as ApplicationConfigV3);
expect(fs.existsSync(backupPath)).toBe(true);
expect(fs.existsSync(expectedBackupPath)).toBe(true);
});
});

0 comments on commit eb75a8e

Please sign in to comment.