mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-18 12:08:14 +02:00
[#5346] added monday.com OAuth2 provider
Co-authored-by: Jay <jaytpa01@gmail.com>
This commit is contained in:
1 parent
397b69041e
commit
830e818eb7
32 files changed
+169
-35
No files matched your search
+10
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user