• andrew@lemmy.stuart.fun
    link
    fedilink
    English
    arrow-up
    42
    ·
    10 months ago
    if !strings.Contains(notification.Text, "People are") {
      t.Fatal("notification text wrong")
    }
    

    Test coverage maintained. 👈😎👈

    • Redjard@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      16
      ·
      10 months ago
      if !strings.Contains(makeNotification($hot_search_word).Text, '${hot_search_word}') {
        t.Fatal("notification text wrong")
      }
      

      Wrote the test boss

    • ______@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      10 months ago

      Good work. Now explain to me why this test passed in CI but is clearly broken in production.