We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516f746 commit d61be41Copy full SHA for d61be41
uploader/uploader_test.go
@@ -0,0 +1,16 @@
1
+package uploader
2
+
3
+import (
4
+ "testing"
5
6
+ "go.mongodb.org/mongo-driver/mongo"
7
+)
8
9
+func TestUpload(t *testing.T) {
10
+ connectDBFunc = func() *mongo.Client {
11
+ return nil // Simple mock, no real connection to db
12
+ }
13
+ defer func() { connectDBFunc = connectDB }() // Point back to original connectDB for any subsequent tests
14
15
+ Upload("/test", false, true)
16
+}
0 commit comments