mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
fix(AIS-693): app locale info in layout mock (#1834)
This commit is contained in:
committed by
GitHub
parent
7820cf018b
commit
8e1927a82b
@@ -7,7 +7,7 @@ export default function fromGenericObjects(genericObjects, options = {}) {
|
|||||||
const session = new SessionMock();
|
const session = new SessionMock();
|
||||||
const createSessionObject = new CreateSessionObjectMock(session);
|
const createSessionObject = new CreateSessionObjectMock(session);
|
||||||
const getObject = new GetObjectMock(genericObjects, options);
|
const getObject = new GetObjectMock(genericObjects, options);
|
||||||
const getAppLayout = new GetAppLayoutMock();
|
const getAppLayout = new GetAppLayoutMock(options);
|
||||||
|
|
||||||
const app = {
|
const app = {
|
||||||
id: `app - ${+Date.now()}`,
|
id: `app - ${+Date.now()}`,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function GetAppLayoutMock() {
|
function GetAppLayoutMock(options) {
|
||||||
return () => Promise.resolve({ id: 'app-layout' });
|
return () => Promise.resolve({ id: 'app-layout', qLocaleInfo: options?.appLocaleInfo });
|
||||||
}
|
}
|
||||||
|
|
||||||
export default GetAppLayoutMock;
|
export default GetAppLayoutMock;
|
||||||
|
|||||||
Reference in New Issue
Block a user