@@ -46,26 +46,26 @@ func TestTableWriter_Write_NoMarkdown(t *testing.T) {
4646 err := tw .Write (& output )
4747 assert .NoError (t , err )
4848
49- expectedOutput := `+--------+--------------------------------------------------+
50- | CHANGE | RESOURCE |
51- +--------+--------------------------------------------------+
52- | add | aws_instance.example1 |
53- +--------+--------------------------------------------------+
54- | update | aws_instance.example3 |
55- + +--------------------------------------------------+
56- | | aws_instance.example4.tag["Custom Instance Tag"] |
57- +--------+--------------------------------------------------+
58- | delete | aws_instance.example2 |
59- +--------+--------------------------------------------------+
60- | moved | aws_instance.old to aws_instance.new |
61- +--------+--------------------------------------------------+
62- +--------+--------------------------------------------------------+
63- | CHANGE | OUTPUT |
64- +--------+--------------------------------------------------------+
65- | update | output.example |
66- + +--------------------------------------------------------+
67- | | output.long_resource_name.this["Custom/Resource Name"] |
68- +--------+--------------------------------------------------------+
49+ expectedOutput := `+------------ +--------------------------------------------------+
50+ | CHANGE | RESOURCE |
51+ +------------ +--------------------------------------------------+
52+ | add (1) | aws_instance.example1 |
53+ +------------ +--------------------------------------------------+
54+ | update (2) | aws_instance.example3 |
55+ + +--------------------------------------------------+
56+ | | aws_instance.example4.tag["Custom Instance Tag"] |
57+ +------------ +--------------------------------------------------+
58+ | delete (1) | aws_instance.example2 |
59+ +------------ +--------------------------------------------------+
60+ | moved | aws_instance.old to aws_instance.new |
61+ +------------ +--------------------------------------------------+
62+ +------------ +--------------------------------------------------------+
63+ | CHANGE | OUTPUT |
64+ +------------ +--------------------------------------------------------+
65+ | update (2) | output.example |
66+ + +--------------------------------------------------------+
67+ | | output.long_resource_name.this["Custom/Resource Name"] |
68+ +------------ +--------------------------------------------------------+
6969`
7070
7171 assert .Equal (t , expectedOutput , output .String ())
@@ -96,16 +96,16 @@ func TestTableWriter_Write_WithMarkdown(t *testing.T) {
9696 err := tw .Write (& output )
9797 assert .NoError (t , err )
9898
99- expectedOutput := `| CHANGE | RESOURCE |
100- |--------|------------------------------------------|
101- | add | ` + "`aws_instance.example1`" + ` |
102- | delete | ` + "`aws_instance.example2`" + ` |
103- | moved | ` + "`aws_instance.old` to `aws_instance.new`" + ` |
99+ expectedOutput := `| CHANGE | RESOURCE |
100+ |------------ |------------------------------------------|
101+ | add (1) | ` + "`aws_instance.example1`" + ` |
102+ | delete (1) | ` + "`aws_instance.example2`" + ` |
103+ | moved | ` + "`aws_instance.old` to `aws_instance.new`" + ` |
104104
105- | CHANGE | OUTPUT |
106- |--------|----------------------------------------------------------|
107- | update | ` + "`output.example`" + ` |
108- | | ` + "`output.long_resource_name.this[\" Custom/Resource Name\" ]`" + ` |
105+ | CHANGE | OUTPUT |
106+ |------------ |----------------------------------------------------------|
107+ | update (2) | ` + "`output.example`" + ` |
108+ | | ` + "`output.long_resource_name.this[\" Custom/Resource Name\" ]`" + ` |
109109`
110110
111111 assert .Equal (t , expectedOutput , output .String ())
0 commit comments