fix: Test fail after PR#40 #15

Merged
0xmuralik merged 7 commits from murali/fix-tests into main 2023-01-09 06:47:09 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 1793a890d9 - Show all commits

View File

@ -4,4 +4,3 @@ record:
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
version: null

View File

@ -7,15 +7,15 @@ import { DEFAULT_CHAIN_ID, Registry } from '../index';
export const ensureUpdatedConfig = async (path: string) => {
const conf = await yaml.read(path);
conf.record.version = semver.inc(conf.record.version, 'patch');
await yaml.write(path, conf);
// conf.record.version = semver.inc(conf.record.version, 'patch');
// await yaml.write(path, conf);
return conf;
};
export const getBaseConfig = async (path: string) => {
const conf = await yaml.read(path);
conf.record.version = '0.0.1';
// conf.record.version = '0.0.1';
return conf;
};