Add unit test for systemd stage

Refs: #406
This commit is contained in:
Jiri Kortus 2020-03-31 17:04:59 +02:00 committed by Ondřej Budai
parent 3a957f4b16
commit b0e28689fb

View file

@ -0,0 +1,16 @@
package osbuild
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewSystemdStage(t *testing.T) {
expectedStage := &Stage{
Name: "org.osbuild.systemd",
Options: &SystemdStageOptions{},
}
actualStage := NewSystemdStage(&SystemdStageOptions{})
assert.Equal(t, expectedStage, actualStage)
}