mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-26 00:39:48 -04:00
66 lines
995 B
TypeScript
66 lines
995 B
TypeScript
|
|
// IONIC:
|
|
|
|
export class ConfigMock {
|
|
|
|
public get(): any {
|
|
return '';
|
|
}
|
|
|
|
public getBoolean(): boolean {
|
|
return true;
|
|
}
|
|
|
|
public getNumber(): number {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
export class FormMock {
|
|
public register(): any {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
export class NavMock {
|
|
|
|
public pop(): any {
|
|
return new Promise(function(resolve: Function): void {
|
|
resolve();
|
|
});
|
|
}
|
|
|
|
public push(): any {
|
|
return new Promise(function(resolve: Function): void {
|
|
resolve();
|
|
});
|
|
}
|
|
|
|
public getActive(): any {
|
|
return {
|
|
'instance': {
|
|
'model': 'something',
|
|
},
|
|
};
|
|
}
|
|
|
|
public setRoot(): any {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
export class PlatformMock {
|
|
public ready(): any {
|
|
return new Promise((resolve: Function) => {
|
|
resolve();
|
|
});
|
|
}
|
|
}
|
|
|
|
export class MenuMock {
|
|
public close(): any {
|
|
return new Promise((resolve: Function) => {
|
|
resolve();
|
|
});
|
|
}
|
|
} |