//nolint:revive // Package name 'api' is appropriate for this test package
package api_test

import (
	"testing"

	wspkg "github.com/jfraeys/fetch_ml/internal/api/ws"
)

func TestWSHandlerNewQueueOpcodeExists(t *testing.T) {
	if wspkg.OpcodeQueueJobWithNote != 0x1B {
		t.Fatalf("expected OpcodeQueueJobWithNote to be 0x1B, got %d", wspkg.OpcodeQueueJobWithNote)
	}
	if wspkg.OpcodeAnnotateRun != 0x1C {
		t.Fatalf("expected OpcodeAnnotateRun to be 0x1C, got %d", wspkg.OpcodeAnnotateRun)
	}
	if wspkg.OpcodeSetRunNarrative != 0x1D {
		t.Fatalf("expected OpcodeSetRunNarrative to be 0x1D, got %d", wspkg.OpcodeSetRunNarrative)
	}
}
