Skip to content

Commit 5c7b08d

Browse files
authored
Fix config test (#491)
1 parent 6348880 commit 5c7b08d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/config.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ describe(`configTest: ${printPath("[test/config.test.js]")}`, function () {
219219
recipeList: [Session.init({ getTokenTransferMethod: () => "cookie" })],
220220
});
221221
SessionRecipe.getInstanceOrThrowError();
222-
assert(SuperTokens.getInstanceOrThrowError().recipeModules.length === 1);
222+
// The number of recipes should be 2 because we initialise the dashboard recipe by default
223+
assert(SuperTokens.getInstanceOrThrowError().recipeModules.length === 2);
223224
resetAll();
224225
}
225226

@@ -237,7 +238,8 @@ describe(`configTest: ${printPath("[test/config.test.js]")}`, function () {
237238
});
238239
SessionRecipe.getInstanceOrThrowError();
239240
EmailPasswordRecipe.getInstanceOrThrowError();
240-
assert(SuperTokens.getInstanceOrThrowError().recipeModules.length === 2);
241+
// The number of recipes should be 3 because we initialise the dashboard recipe by default
242+
assert(SuperTokens.getInstanceOrThrowError().recipeModules.length === 3);
241243
resetAll();
242244
}
243245
});

0 commit comments

Comments
 (0)