mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix tests
This commit is contained in:
@@ -122,7 +122,7 @@ describe('iD.Connection', function () {
|
||||
it('emits a load event', function(done) {
|
||||
c.loadEntity('n1');
|
||||
c.on('load', function(error, result) {
|
||||
expect(result.n1).to.be.an.instanceOf(iD.Node);
|
||||
expect(result.data.n1).to.be.an.instanceOf(iD.Node);
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ describe("iD.svg.Vertices", function () {
|
||||
|
||||
it("adds the .shared class to vertices that are members of two or more ways", function () {
|
||||
var node = iD.Node({loc: [0, 0]}),
|
||||
way1 = iD.Way({nodes: [node.id]}),
|
||||
way2 = iD.Way({nodes: [node.id]}),
|
||||
way1 = iD.Way({nodes: [node.id], tags: {highway: 'residential'}}),
|
||||
way2 = iD.Way({nodes: [node.id], tags: {highway: 'residential'}}),
|
||||
graph = iD.Graph([node, way1, way2]);
|
||||
|
||||
surface.call(iD.svg.Vertices(projection, context), graph, [node], 17);
|
||||
|
||||
Reference in New Issue
Block a user