mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-04 07:24:52 +01:00
* Added query retry settings * prettier run * Fixed tests and queryDocuments * Fixed tests * corrected logic * Updated tests and logic * Removed optional flag * Added default value text * Reworded text * moved retry options to CosmosClient * removed unused references to retryOptions * Reverting formatting * reverting * revert * prettier run * Correct default and added options directly to the client * Prettier run and unit test update * Corrected tooltip and constant name * Added inSeconds to WaitTime
14 lines
560 B
TypeScript
14 lines
560 B
TypeScript
import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility";
|
|
import { getCommonQueryOptions } from "./queryDocuments";
|
|
|
|
describe("getCommonQueryOptions", () => {
|
|
it("builds the correct default options objects", () => {
|
|
expect(getCommonQueryOptions({})).toMatchSnapshot();
|
|
});
|
|
it("reads from localStorage", () => {
|
|
LocalStorageUtility.setEntryNumber(StorageKey.ActualItemPerPage, 37);
|
|
LocalStorageUtility.setEntryNumber(StorageKey.MaxDegreeOfParellism, 17);
|
|
expect(getCommonQueryOptions({})).toMatchSnapshot();
|
|
});
|
|
});
|