@@ -58,7 +58,7 @@ describe('GitLog', () => {
5858 } )
5959 } )
6060
61- it ( 'should render correctly and match the snapshot the standard GitLog component' , { timeout : 1000 * 10 } , ( ) => {
61+ it ( 'should render correctly and match the snapshot of the GitLog component' , { timeout : 1000 * 10 } , ( ) => {
6262 const gitLogEntries = parseGitLogOutput ( sleepRepositoryData )
6363
6464 const { asFragment } = render (
@@ -77,6 +77,45 @@ describe('GitLog', () => {
7777 expect ( asFragment ( ) ) . toMatchSnapshot ( )
7878 } )
7979
80+ it ( 'should render correctly and match the snapshot of the GitLog component in flipped orientation' , { timeout : 1000 * 10 } , ( ) => {
81+ const gitLogEntries = parseGitLogOutput ( sleepRepositoryData )
82+
83+ const { asFragment } = render (
84+ < GitLog
85+ showHeaders
86+ currentBranch = 'release'
87+ entries = { gitLogEntries }
88+ githubRepositoryUrl = 'https://github.com/TomPlum/sleep'
89+ >
90+ < GitLog . Tags />
91+ < GitLog . Graph orientation = 'flipped' />
92+ < GitLog . Table />
93+ </ GitLog >
94+ )
95+
96+ expect ( asFragment ( ) ) . toMatchSnapshot ( )
97+ } )
98+
99+ it ( 'should render correctly and match the snapshot of the GitLog component with a custom node size' , { timeout : 1000 * 10 } , ( ) => {
100+ const gitLogEntries = parseGitLogOutput ( sleepRepositoryData )
101+
102+ const { asFragment } = render (
103+ < GitLog
104+ showHeaders
105+ currentBranch = 'release'
106+ entries = { gitLogEntries }
107+ defaultGraphWidth = { 100 }
108+ githubRepositoryUrl = 'https://github.com/TomPlum/sleep'
109+ >
110+ < GitLog . Tags />
111+ < GitLog . Graph nodeSize = { 12 } />
112+ < GitLog . Table />
113+ </ GitLog >
114+ )
115+
116+ expect ( asFragment ( ) ) . toMatchSnapshot ( )
117+ } )
118+
80119 it ( 'should log a warning if the graph subcomponent is not rendered' , ( ) => {
81120 const consoleWarn = vi . spyOn ( console , 'warn' )
82121
0 commit comments