chore: reduce excessive logs in unit tests

This commit is contained in:
Yash-Singh1
2022-05-10 17:04:22 -07:00
parent 8394bcd4a9
commit bc58c8e03c
7 changed files with 6 additions and 20 deletions

View File

@@ -40,7 +40,6 @@ describe('when parsing a gitGraph', function () {
const str = `gitGraph:
commit id:"1111"
`;
//console.log(str);
parser.parse(str);
const commits = parser.yy.getCommits();
expect(Object.keys(commits).length).toBe(1);
@@ -449,9 +448,6 @@ describe('when parsing a gitGraph', function () {
const commit3 = Object.keys(commits)[2];
const commit4 = Object.keys(commits)[3];
expect(commits[commit1].branch).toBe('main');
console.log(commits);
console.log(commits[commit1].parents);
expect(commits[commit1].parents).toStrictEqual([]);
expect(commits[commit2].branch).toBe('testBranch');
expect(commits[commit2].parents).toStrictEqual([commits[commit1].id]);