mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-11 13:46:10 +00:00
17 lines
595 B
JavaScript
17 lines
595 B
JavaScript
describe('Style', function() {
|
|
describe('#waystack', function() {
|
|
it('stacks bridges over non-bridges', function() {
|
|
var a = { tags: { bridge: 'yes' } },
|
|
b = { tags: {} };
|
|
expect(iD.Style.waystack(a, b)).toEqual(1);
|
|
expect(iD.Style.waystack(b, a)).toEqual(-1);
|
|
});
|
|
it('stacks layers', function() {
|
|
var a = { tags: { layer: 1 } },
|
|
b = { tags: { layer: 0 } };
|
|
expect(iD.Style.waystack(a, b)).toEqual(1);
|
|
expect(iD.Style.waystack(b, a)).toEqual(-1);
|
|
});
|
|
});
|
|
});
|