Permalink
Browse files

commands: Fix spelling

  • Loading branch information...
qeesung authored and bep committed Nov 6, 2018
1 parent 2998fa0 commit 47506d164467eb7ddbcada81b767d8df5f9c8786
Showing with 3 additions and 3 deletions.
  1. +2 −2 commands/commands.go
  2. +1 −1 commands/commands_test.go
View
@@ -80,14 +80,14 @@ var _ commandsBuilderGetter = (*baseBuilderCmd)(nil)
// Used in tests.
type commandsBuilderGetter interface {
getCmmandsBuilder() *commandsBuilder
getCommandsBuilder() *commandsBuilder
}
type baseBuilderCmd struct {
*baseCmd
*commandsBuilder
}
func (b *baseBuilderCmd) getCmmandsBuilder() *commandsBuilder {
func (b *baseBuilderCmd) getCommandsBuilder() *commandsBuilder {
return b.commandsBuilder
}
@@ -76,7 +76,7 @@ func TestCommandsPersistentFlags(t *testing.T) {
var sc *serverCmd
for _, command := range commands {
if b, ok := command.(commandsBuilderGetter); ok {
v := b.getCmmandsBuilder().hugoBuilderCommon
v := b.getCommandsBuilder().hugoBuilderCommon
assert.Equal("myconfig.toml", v.cfgFile)
assert.Equal("mysource", v.source)
assert.Equal("https://example.com/b/", v.baseURL)

0 comments on commit 47506d1

Please sign in to comment.