@@ -43,7 +43,7 @@ describe('Subnet UT', () => {
43
43
} ) . rejects . toThrowErrorMatchingInlineSnapshot ( '"Change of subnet type is not supported!"' ) ;
44
44
} ) ;
45
45
46
- it ( 'should generate add diff of associations when previous does not exist ' , async ( ) => {
46
+ it ( 'should generate update diff of associations on adding subnet ' , async ( ) => {
47
47
const app = new App ( 'test' ) ;
48
48
const region = new Region ( 'region' ) ;
49
49
app . addRegion ( region ) ;
@@ -58,7 +58,7 @@ describe('Subnet UT', () => {
58
58
expect ( diff ) . toMatchInlineSnapshot ( `
59
59
[
60
60
{
61
- "action": "add ",
61
+ "action": "update ",
62
62
"field": "association",
63
63
"value": "region-subnet1",
64
64
},
@@ -81,7 +81,7 @@ describe('Subnet UT', () => {
81
81
expect ( diff ) . toMatchInlineSnapshot ( `[]` ) ;
82
82
} ) ;
83
83
84
- it ( 'should generate delete diff of associations on removing subnet association ' , async ( ) => {
84
+ it ( 'should generate update diff of associations on removing subnet' , async ( ) => {
85
85
const app = new App ( 'test' ) ;
86
86
const region = new Region ( 'region' ) ;
87
87
app . addRegion ( region ) ;
@@ -101,7 +101,7 @@ describe('Subnet UT', () => {
101
101
expect ( diff ) . toMatchInlineSnapshot ( `
102
102
[
103
103
{
104
- "action": "delete ",
104
+ "action": "update ",
105
105
"field": "association",
106
106
"value": "region-subnet1",
107
107
},
0 commit comments