Add unit test for timezone stage

Refs: #406
This commit is contained in:
Jiri Kortus 2020-03-31 17:25:22 +02:00 committed by Tom Gundersen
parent 8dafb64f1b
commit 44b501d401

View file

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