Skip to content

Commit 0949ea4

Browse files
Fix useEmulators argument validation
1 parent 74b49d2 commit 0949ea4

File tree

1 file changed

+2
-2
lines changed
  • packages/rules-unit-testing/src/api

1 file changed

+2
-2
lines changed

packages/rules-unit-testing/src/api/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ export function initializeAdminApp(options: AdminAppOptions): app.App {
263263
* @param options options object.
264264
*/
265265
export function useEmulators(options: FirebaseEmulatorOptions): void {
266-
if (!(options.database || options.firestore || options.hub)) {
266+
if (!(options.database || options.firestore || options.storage || options.hub)) {
267267
throw new Error(
268-
"Argument to useEmulators must contain at least one of 'database', 'firestore', or 'hub'."
268+
"Argument to useEmulators must contain at least one of 'database', 'firestore', 'storage', or 'hub'."
269269
);
270270
}
271271

0 commit comments

Comments
 (0)