fix(AIS-693): app locale info in layout mock (#1834)

This commit is contained in:
Niek van Staveren
2025-11-13 08:32:46 +01:00
committed by GitHub
parent 7820cf018b
commit 8e1927a82b
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ export default function fromGenericObjects(genericObjects, options = {}) {
const session = new SessionMock();
const createSessionObject = new CreateSessionObjectMock(session);
const getObject = new GetObjectMock(genericObjects, options);
const getAppLayout = new GetAppLayoutMock();
const getAppLayout = new GetAppLayoutMock(options);
const app = {
id: `app - ${+Date.now()}`,

View File

@@ -1,5 +1,5 @@
function GetAppLayoutMock() {
return () => Promise.resolve({ id: 'app-layout' });
function GetAppLayoutMock(options) {
return () => Promise.resolve({ id: 'app-layout', qLocaleInfo: options?.appLocaleInfo });
}
export default GetAppLayoutMock;