[Root] Root model provider sets location
Root model provider sets the location of roods so that the location capability does not need special handling for this.
This commit is contained in:
@@ -79,6 +79,12 @@ define(
|
||||
expect(captured.b.someProperty).toEqual("Some Value B");
|
||||
});
|
||||
|
||||
it("provides models with a location", function () {
|
||||
provider.getModels(["a", "b"]).then(capture);
|
||||
expect(captured.a.location).toBe('ROOT');
|
||||
expect(captured.b.location).toBe('ROOT');
|
||||
});
|
||||
|
||||
|
||||
it("does not provide models which are not in extension declarations", function () {
|
||||
provider.getModels(["c"]).then(capture);
|
||||
@@ -96,4 +102,4 @@ define(
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user