mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-27 10:22:35 +02:00
Make sure the addablePresetIDs can be reset back to null too
This commit is contained in:
@@ -192,6 +192,10 @@ describe('iD.presetIndex', function () {
|
||||
expect(presets.item('point').addable()).to.be.true;
|
||||
expect(presets.item('line').addable()).to.be.false;
|
||||
expect(presets.addablePresetIDs()).to.eql(ids);
|
||||
|
||||
presets.addablePresetIDs(null);
|
||||
expect(presets.item('point').addable()).to.be.true;
|
||||
expect(presets.item('line').addable()).to.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user