summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
commit8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch)
tree05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test')
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/browser/crawler_support.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/database.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/datasnapshot.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/events.d.ts34
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/util.d.ts42
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/info.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order_by.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/promise.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/query.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/servervalues.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/transaction.test.d.ts17
12 files changed, 246 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/browser/crawler_support.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/browser/crawler_support.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/browser/crawler_support.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/database.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/database.test.d.ts
new file mode 100644
index 0000000..cdaeff3
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/database.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import '../src/index';
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/datasnapshot.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/datasnapshot.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/datasnapshot.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/events.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/events.d.ts
new file mode 100644
index 0000000..58d323c
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/events.d.ts
@@ -0,0 +1,34 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * A set of functions to clean up event handlers.
+ */
+export declare let eventCleanupHandlers: any[];
+/** Clean up outstanding event handlers */
+export declare function eventCleanup(): void;
+/**
+ * Creates a struct which waits for many events.
+ * @param pathAndEvents - an array of tuples of [Firebase, [event type strings]]
+ */
+export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
+ promise: Promise<unknown>;
+ initPromise: Promise<unknown>;
+ waiter: () => boolean;
+ watchesInitializedWaiter: () => boolean;
+ unregister: () => void;
+ addExpectedEvents(moreEvents: any): void;
+};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/util.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/util.d.ts
new file mode 100644
index 0000000..5f56191
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/helpers/util.d.ts
@@ -0,0 +1,42 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import '../../src/index';
+import { Path } from '../../../database/src/core/util/Path';
+import { Query, Reference } from '../../src/api/Reference';
+export declare const TEST_PROJECT: any;
+export declare const DATABASE_ADDRESS: any;
+export declare const DATABASE_URL: any;
+export declare function createTestApp(): import("@firebase/app-compat").FirebaseApp;
+/**
+ * Gets or creates a root node to the test namespace. All calls sharing the
+ * value of opt_i will share an app context.
+ */
+export declare function getRootNode(i?: number, ref?: string): any;
+/**
+ * Create multiple refs to the same top level
+ * push key - each on its own Firebase.Context.
+ */
+export declare function getRandomNode(numNodes?: any): Reference | Reference[];
+export declare function getQueryValue(query: Query): Promise<unknown>;
+export declare function pause(milliseconds: number): Promise<void>;
+export declare function getPath(query: Query): string;
+export declare function shuffle(arr: any, randFn?: () => number): void;
+export declare function getFreshRepo(path: Path): any;
+export declare function getFreshRepoFromReference(ref: any): any;
+export declare function getSnap(path: any): any;
+export declare function getVal(path: any): any;
+export declare function canCreateExtraConnections(): boolean;
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/info.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/info.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/info.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order_by.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order_by.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/order_by.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/promise.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/promise.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/promise.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/query.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/query.test.d.ts
new file mode 100644
index 0000000..9444bf8
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/query.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/servervalues.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/servervalues.test.d.ts
new file mode 100644
index 0000000..1c93d90
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/servervalues.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/transaction.test.d.ts b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/transaction.test.d.ts
new file mode 100644
index 0000000..cdaeff3
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/database-compat/dist/database-compat/test/transaction.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import '../src/index';