mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
This commit is contained in:
committed by
Hristo Deshev
parent
dfb4e031a6
commit
629eb6e683
@@ -1,8 +1,8 @@
|
||||
import * as TKUnit from "../TKUnit";
|
||||
import { Label } from "ui/label";
|
||||
import { Label } from "tns-core-modules/ui/label";
|
||||
|
||||
// >> observable-array-require
|
||||
import { ObservableArray, ChangedData, ChangeType } from "data/observable-array";
|
||||
import { ObservableArray, ChangedData, ChangeType } from "tns-core-modules/data/observable-array";
|
||||
// << observable-array-require
|
||||
|
||||
export const test_ObservableArray_shouldCopySourceArrayItems = function () {
|
||||
@@ -635,4 +635,4 @@ export const test_reduce_isDefined = function () {
|
||||
|
||||
export const test_reduceRight_isDefined = function () {
|
||||
TKUnit.assert(typeof (array.reduceRight) === "function", "Method 'reduceRight()' should be defined!");
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// >> observable-require
|
||||
import { Observable, fromObject, fromObjectRecursive, PropertyChangeData, EventData, WrappedValue } from "data/observable";
|
||||
import { Observable, fromObject, fromObjectRecursive, PropertyChangeData, EventData, WrappedValue } from "tns-core-modules/data/observable";
|
||||
// << observable-require
|
||||
|
||||
import * as TKUnit from "../TKUnit";
|
||||
import * as types from "utils/types";
|
||||
import { ObservableArray } from "data/observable-array";
|
||||
import * as types from "tns-core-modules/utils/types";
|
||||
import { ObservableArray } from "tns-core-modules/data/observable-array";
|
||||
|
||||
var TESTED_NAME = "tested";
|
||||
class TestObservable extends Observable {
|
||||
@@ -538,4 +538,4 @@ export function test_NestedObservableWithNullShouldNotCrash() {
|
||||
someProperty: null
|
||||
});
|
||||
TKUnit.assert(testObservable !== undefined);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as TKUnit from "../TKUnit";
|
||||
import * as types from "utils/types";
|
||||
import * as types from "tns-core-modules/utils/types";
|
||||
|
||||
// >> virtual-array-require
|
||||
import * as virtualArrayModule from "data/virtual-array";
|
||||
import * as virtualArrayModule from "tns-core-modules/data/virtual-array";
|
||||
// << virtual-array-require
|
||||
|
||||
require("globals");
|
||||
|
||||
Reference in New Issue
Block a user