// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package quirks_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/siderolabs/talos/pkg/imager/quirks" ) func TestSupportsResetOption(t *testing.T) { for _, test := range []struct { version string expected bool }{ { version: "1.5.0", expected: true, }, { expected: true, }, { version: "1.3.7", expected: false, }, } { t.Run(test.version, func(t *testing.T) { assert.Equal(t, test.expected, quirks.New(test.version).SupportsResetGRUBOption()) }) } }