UNPKG

@o3r/dynamic-content

Version:

This module provides a mechanism to retrieve media and data depending on the host or a server specific url.

35 lines (31 loc) 1.08 kB
import { StorageStrategy } from '@o3r/dynamic-content'; /** * Fixture file for requestParameters service */ class RequestParametersServiceFixture { constructor() { this.query = {}; this.post = {}; this.config = { strategy: StorageStrategy.Rehydrate, storage: (typeof window === 'undefined') ? undefined : window.sessionStorage, queryParamsValue: '{}', postParamsValue: '{}' }; this.getQueryParameter = jest.fn(); this.getQueryParameterAsBoolean = jest.fn(); this.getPostParameter = jest.fn(); this.getPostParameterAsBoolean = jest.fn(); this.getParameter = jest.fn(); this.getParameterAsBoolean = jest.fn(); this.clearQueryParameters = jest.fn(); this.clearPostParameters = jest.fn(); this.getParams = jest.fn(); this.getFilteredParameters = jest.fn(); } } /** * Generated bundle index. Do not edit. */ export { RequestParametersServiceFixture }; //# sourceMappingURL=o3r-dynamic-content-fixtures-jest.mjs.map