mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-30 08:50:32 +02:00
fix test
This commit is contained in:
@@ -47,15 +47,15 @@ describe('iD.presetField', function() {
|
||||
allFields.preset = field;
|
||||
|
||||
// mock localizer
|
||||
sinon.spy(other, 't');
|
||||
sinon.spy(field, 't');
|
||||
sinon.spy(other.t, 'append');
|
||||
sinon.spy(field.t, 'append');
|
||||
sinon.stub(other, 'hasTextForStringId').returns(true);
|
||||
|
||||
var context = iD.coreContext().assetPath('../dist/').init();
|
||||
var uiField = iD.uiFieldCombo(field, context);
|
||||
uiField.tags({k: 'v'});
|
||||
expect(field.t).not.to.have.been.called;
|
||||
expect(other.t).to.have.been.called;
|
||||
expect(field.t.append).not.to.have.been.called;
|
||||
expect(other.t.append).to.have.been.called;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user