[#5346] added monday.com OAuth2 provider

Co-authored-by: Jay <jaytpa01@gmail.com>
This commit is contained in:
Gani Georgiev
2024-10-10 15:41:01 +03:00
parent 397b69041e
commit 830e818eb7
32 changed files with 169 additions and 35 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestProvidersCount(t *testing.T) {
expected := 26
expected := 27
if total := len(auth.Providers); total != expected {
t.Fatalf("Expected %d providers, got %d", expected, total)
@@ -260,4 +260,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Notion); !ok {
t.Error("Expected to be instance of *auth.Notion")
}
// monday
p, err = auth.NewProviderByName(auth.NameMonday)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Monday); !ok {
t.Error("Expected to be instance of *auth.Monday")
}
}