package placement

import "testing"

func TestResolveReplyTargetIDFromPermalink(t *testing.T) {
	got := ResolveReplyTargetID("", "https://www.threads.net/@alice/post/AbCdEf123")
	if got != "AbCdEf123" {
		t.Fatalf("got %q", got)
	}
}

func TestResolveReplyTargetIDPrefersExternalID(t *testing.T) {
	got := ResolveReplyTargetID("media-123", "https://www.threads.net/@alice/post/AbCdEf123")
	if got != "media-123" {
		t.Fatalf("got %q", got)
	}
}
