Skip to content

Commit 2bf6f38

Browse files
committed
command/show: fix tests
1 parent 687c5cd commit 2bf6f38

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

‎command/show_test.go‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import (
1111
func TestShow(t *testing.T) {
1212
ui := new(cli.MockUi)
1313
c := &ShowCommand{
14-
ContextOpts: testCtxConfig(testProvider()),
15-
Ui: ui,
14+
Meta: Meta{
15+
ContextOpts: testCtxConfig(testProvider()),
16+
Ui: ui,
17+
},
1618
}
1719

1820
args := []string{
@@ -27,8 +29,10 @@ func TestShow(t *testing.T) {
2729
func TestShow_noArgs(t *testing.T) {
2830
ui := new(cli.MockUi)
2931
c := &ShowCommand{
30-
ContextOpts: testCtxConfig(testProvider()),
31-
Ui: ui,
32+
Meta: Meta{
33+
ContextOpts: testCtxConfig(testProvider()),
34+
Ui: ui,
35+
},
3236
}
3337

3438
args := []string{}
@@ -44,8 +48,10 @@ func TestShow_plan(t *testing.T) {
4448

4549
ui := new(cli.MockUi)
4650
c := &ShowCommand{
47-
ContextOpts: testCtxConfig(testProvider()),
48-
Ui: ui,
51+
Meta: Meta{
52+
ContextOpts: testCtxConfig(testProvider()),
53+
Ui: ui,
54+
},
4955
}
5056

5157
args := []string{
@@ -70,8 +76,10 @@ func TestShow_state(t *testing.T) {
7076

7177
ui := new(cli.MockUi)
7278
c := &ShowCommand{
73-
ContextOpts: testCtxConfig(testProvider()),
74-
Ui: ui,
79+
Meta: Meta{
80+
ContextOpts: testCtxConfig(testProvider()),
81+
Ui: ui,
82+
},
7583
}
7684

7785
args := []string{

0 commit comments

Comments
 (0)