You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("should throw error when legacy config is only partially set",()=>{
100
+
process.env.FIRESTORE_COLLECTION_PATH="books";
101
+
102
+
expect(()=>config.createCollectionConfigMap()).toThrow("Incomplete legacy collection config. Set both FIRESTORE_COLLECTION_PATH and TYPESENSE_COLLECTION_NAME");
103
+
});
104
+
105
+
it("should throw error when multi-collection config is only partially set",()=>{
expect(()=>config.createCollectionConfigMap()).toThrow("Incomplete multi-collection config. Set both FIRESTORE_COLLECTION_PATHS and TYPESENSE_COLLECTION_NAMES");
109
+
});
110
+
71
111
it("should create collection map from legacy single collection parameters",()=>{
0 commit comments