@@ -296,7 +296,7 @@ func TestGenerate(t *testing.T) {
296296 assertModuleContent (t , module , filepath .Join (generatedTemplatesDir , moduleNameLower + ".go" ))
297297 assertGoModContent (t , module , originalConfig .Extra .LatestVersion , filepath .Join (generatedTemplatesDir , "go.mod" ))
298298 assertMakefileContent (t , module , filepath .Join (generatedTemplatesDir , "Makefile" ))
299- assertMkdocsNavItems (t , module , originalConfig , tmpCtx )
299+ assertMkdocsNavItems (t , tmpCtx , module , originalConfig )
300300}
301301
302302func TestGenerateModule (t * testing.T ) {
@@ -352,7 +352,7 @@ func TestGenerateModule(t *testing.T) {
352352 assertModuleContent (t , module , filepath .Join (generatedTemplatesDir , moduleNameLower + ".go" ))
353353 assertGoModContent (t , module , originalConfig .Extra .LatestVersion , filepath .Join (generatedTemplatesDir , "go.mod" ))
354354 assertMakefileContent (t , module , filepath .Join (generatedTemplatesDir , "Makefile" ))
355- assertMkdocsNavItems (t , module , originalConfig , tmpCtx )
355+ assertMkdocsNavItems (t , tmpCtx , module , originalConfig )
356356}
357357
358358// assert content module file in the docs
@@ -480,9 +480,9 @@ func assertMakefileContent(t *testing.T, module context.TestcontainersModule, ma
480480}
481481
482482// assert content in the nav items from mkdocs.yml
483- func assertMkdocsNavItems (t * testing.T , module context.TestcontainersModule , originalConfig * mkdocs.Config , tmpCtx context. Context ) {
483+ func assertMkdocsNavItems (t * testing.T , ctx context. Context , module context.TestcontainersModule , originalConfig * mkdocs.Config ) {
484484 t .Helper ()
485- config , err := mkdocs .ReadConfig (tmpCtx .MkdocsConfigFile ())
485+ config , err := mkdocs .ReadConfig (ctx .MkdocsConfigFile ())
486486 require .NoError (t , err )
487487
488488 parentDir := module .ParentDir ()
0 commit comments