@@ -59,13 +59,13 @@ context:
5959
6060 t .Run ("mnemonic inserted with value" , func (t * testing.T ) {
6161 // value node
62- val := migration .ResolveNode (migrated , []string {"context" , "mnumonic " })
62+ val := migration .ResolveNode (migrated , []string {"context" , "mnemonic " })
6363 if val == nil {
64- t .Fatalf ("mnumonic key missing" )
64+ t .Fatalf ("mnemonic key missing" )
6565 }
6666 want := "test test test test test test test test test test test junk"
6767 if val .Value != want {
68- t .Errorf ("expected mnumonic value %q, got %q" , want , val .Value )
68+ t .Errorf ("expected mnemonic value %q, got %q" , want , val .Value )
6969 }
7070 })
7171
@@ -76,38 +76,38 @@ context:
7676 t .Fatalf ("context mapping missing or wrong kind %d" , ctx .Kind )
7777 }
7878 chainsIdx := - 1
79- mnumonicIdx := - 1
79+ mnemonicIdx := - 1
8080 for i := 0 ; i < len (ctx .Content )- 1 ; i += 2 {
8181 k := ctx .Content [i ]
8282 switch k .Value {
8383 case "chains" :
8484 chainsIdx = i
85- case "mnumonic " :
86- mnumonicIdx = i
85+ case "mnemonic " :
86+ mnemonicIdx = i
8787 }
8888 }
8989 if chainsIdx < 0 {
9090 t .Fatalf ("context.chains key not found" )
9191 }
92- if mnumonicIdx < 0 {
93- t .Fatalf ("context.mnumonic key not found" )
92+ if mnemonicIdx < 0 {
93+ t .Fatalf ("context.mnemonic key not found" )
9494 }
95- if mnumonicIdx != chainsIdx + 2 {
96- t .Errorf ("mnumonic not inserted immediately after chains: chainsIdx=%d mnumonicIdx =%d" , chainsIdx , mnumonicIdx )
95+ if mnemonicIdx != chainsIdx + 2 {
96+ t .Errorf ("mnemonic not inserted immediately after chains: chainsIdx=%d mnemonicIdx =%d" , chainsIdx , mnemonicIdx )
9797 }
9898 })
9999
100- t .Run ("comment attached to mnumonic key" , func (t * testing.T ) {
100+ t .Run ("comment attached to mnemonic key" , func (t * testing.T ) {
101101 ctx := migration .ResolveNode (migrated , []string {"context" })
102102 var keyNode * yaml.Node
103103 for i := 0 ; i < len (ctx .Content )- 1 ; i += 2 {
104- if ctx .Content [i ].Value == "mnumonic " {
104+ if ctx .Content [i ].Value == "mnemonic " {
105105 keyNode = ctx .Content [i ]
106106 break
107107 }
108108 }
109109 if keyNode == nil {
110- t .Fatalf ("mnumonic key node not found" )
110+ t .Fatalf ("mnemonic key node not found" )
111111 }
112112 wantComment := "Devnet mnemonic for unlocked accounts"
113113 if keyNode .HeadComment != wantComment {
0 commit comments