endpoint_test.go 497 B

12345678910111213141516171819202122
  1. // Copyright 2018 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. //go:build integration
  5. // +build integration
  6. package tests
  7. import (
  8. "testing"
  9. miniflux "miniflux.app/client"
  10. )
  11. func TestWithBadEndpoint(t *testing.T) {
  12. client := miniflux.New("bad url", testAdminUsername, testAdminPassword)
  13. _, err := client.Users()
  14. if err == nil {
  15. t.Fatal(`Using a bad URL should raise an error`)
  16. }
  17. }