Add unit test for GRUB2 stage

Refs: #405
This commit is contained in:
Jiri Kortus 2020-03-27 17:55:49 +01:00 committed by Tom Gundersen
parent 3306a3b20e
commit 5fc1f10ecb

View file

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