Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Jan 6, 2025
1 parent a135d28 commit 80b9140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/atmos/aws-component-helper/atmos_component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ import (
"github.com/stretchr/testify/assert"
)

// TestAtmosComponent tests the creation and properties of an AtmosComponent
func TestAtmosComponent(t *testing.T) {
// Create a temporary atmos component
// Create a temporary AtmosComponent with name "vpc" and stack "default-test"
// Passing 'nil' for vars as no specific variables are required for this test
component := NewAtmosComponent("vpc", "default-test", nil)

// Assert that the ComponentName is correctly set to "vpc"
assert.Equal(t, component.ComponentName, "vpc")

// Assert that the StackName is correctly set to "default-test"
assert.Equal(t, component.StackName, "default-test")
}

0 comments on commit 80b9140

Please sign in to comment.