mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -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 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()}`,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user