Replacing master to main in test cases

This commit is contained in:
Ashish Jain
2022-03-17 19:19:25 +01:00
parent 501e62894b
commit a7c33b7d5a

View File

@@ -1,7 +1,7 @@
import { imgSnapshotTest } from '../../helpers/util.js'; import { imgSnapshotTest } from '../../helpers/util.js';
describe('Git Graph diagram', () => { describe('Git Graph diagram', () => {
it('1: should render a simple gitgraph with commit on master branch', () => { it('1: should render a simple gitgraph with commit on main branch', () => {
imgSnapshotTest( imgSnapshotTest(
`gitGraph `gitGraph
commit commit
@@ -11,7 +11,7 @@ describe('Git Graph diagram', () => {
{} {}
); );
}); });
it('2: should render a simple gitgraph with commit on master branch with Id', () => { it('2: should render a simple gitgraph with commit on main branch with Id', () => {
imgSnapshotTest( imgSnapshotTest(
`gitGraph `gitGraph
commit id: "One" commit id: "One"
@@ -21,7 +21,7 @@ describe('Git Graph diagram', () => {
{} {}
); );
}); });
it('3: should render a simple gitgraph with different commitTypes on master branch ', () => { it('3: should render a simple gitgraph with different commitTypes on main branch ', () => {
imgSnapshotTest( imgSnapshotTest(
`gitGraph `gitGraph
commit id: "Normal Commit" commit id: "Normal Commit"
@@ -31,7 +31,7 @@ describe('Git Graph diagram', () => {
{} {}
); );
}); });
it('4: should render a simple gitgraph with tags commitTypes on master branch ', () => { it('4: should render a simple gitgraph with tags commitTypes on main branch ', () => {
imgSnapshotTest( imgSnapshotTest(
`gitGraph `gitGraph
commit id: "Normal Commit with tag" teg: "v1.0.0" commit id: "Normal Commit with tag" teg: "v1.0.0"
@@ -50,7 +50,7 @@ describe('Git Graph diagram', () => {
checkout develop checkout develop
commit commit
commit commit
checkout master checkout main
commit commit
commit commit
`, `,
@@ -66,7 +66,7 @@ describe('Git Graph diagram', () => {
checkout develop checkout develop
commit commit
commit commit
checkout master checkout main
merge develop merge develop
commit commit
commit commit
@@ -82,21 +82,21 @@ describe('Git Graph diagram', () => {
branch nice_feature branch nice_feature
checkout nice_feature checkout nice_feature
commit commit
checkout master checkout main
commit commit
checkout nice_feature checkout nice_feature
branch very_nice_feature branch very_nice_feature
checkout very_nice_feature checkout very_nice_feature
commit commit
checkout master checkout main
commit commit
checkout nice_feature checkout nice_feature
commit commit
checkout master checkout main
merge nice_feature merge nice_feature
checkout very_nice_feature checkout very_nice_feature
commit commit
checkout master checkout main
commit commit
`, `,
{} {}