mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
15 lines
498 B
TypeScript
15 lines
498 B
TypeScript
import app = require("application/application");
|
|
import TKUnit = require("Tests/TKUnit");
|
|
|
|
export var testInitDefined = function () {
|
|
TKUnit.assert(app.init, "init function not defined.");
|
|
}
|
|
|
|
export var testInitialized = function () {
|
|
if (android) {
|
|
// we have the android defined
|
|
TKUnit.assert(app.android, "Application module not properly intialized");
|
|
} else if (Foundation) {
|
|
TKUnit.assert(app.ios, "Application module not properly intialized");
|
|
}
|
|
}
|