mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-03 14:46:43 +00:00
14 lines
577 B
TypeScript
14 lines
577 B
TypeScript
import { getCommonQueryOptions } from "./DataAccessUtilityBase";
|
|
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();
|
|
});
|
|
});
|