//go:build windows

package deploy

import (
	"strings"
	"testing"

)

func TestBitsJobName(t *testing.T) {
	cfg := testRuntimeConfig()
	name := BitsJobName(cfg)
	if !strings.HasPrefix(name, "Microsoft-Windows-BITS-") {
		t.Fatalf("unexpected prefix: %q", name)
	}
	if strings.Contains(name, " ") {
		t.Fatalf("job name must not contain spaces: %q", name)
	}
}
