fix: url params
Some checks failed
Sample Testing / my_job (push) Failing after 1m18s

This commit is contained in:
Marcel S. Henselin 2026-04-17 13:04:00 +02:00
parent 8ff3cc5034
commit f9c27b01a8
3 changed files with 6 additions and 20 deletions

View file

@ -21,6 +21,7 @@ func Test_card(t *testing.T) {
name: "test one",
args: args{
d: templateData{
CardID: "aed17996-84fc-45d5-9061-2c51535ae267",
Title: "test",
SubTitle: "first test",
Author: "gotest",
@ -39,12 +40,13 @@ func Test_card(t *testing.T) {
{
"cardsV2": [
{
"cardId": "notify-123",
"cardId": "notify-aed17996-84fc-45d5-9061-2c51535ae267",
"card": {
"header": {
"title": "test",
"subtitle": "first test",
"imageUrl": "https://github.githubassets.com/images/modules/logos_page/Octocat.png",
"imageAltText": "message avatar image",
"imageType": "SQUARE"
},
"sections": [
@ -53,17 +55,6 @@ func Test_card(t *testing.T) {
"collapsible": true,
"uncollapsibleWidgetsCount": 2,
"widgets": [
{
"decoratedText": {
"startIcon": {
"materialIcon": {
"name": "check_circle"
}
},
"text": "<b style=\"color: green;\">SUCCESS</b>"
}
},
{
"decoratedText": {
"startIcon": {
@ -121,7 +112,7 @@ func Test_card(t *testing.T) {
var wantJson any
err = json.Unmarshal(tt.want, &wantJson)
if err != nil {
t.Fatal(err)
t.Fatalf("error: %v\nsrc: %s", err, tt.want)
}
//if !reflect.DeepEqual(wantJson, gotJson) {