mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-23 02:41:39 +00:00
14 lines
560 B
TypeScript
14 lines
560 B
TypeScript
import { getCommonQueryOptions } from "./queryDocuments";
|
|
import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility";
|
|
|
|
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();
|
|
});
|
|
});
|