add basic test case for t.append method

This commit is contained in:
Martin Raifer
2021-11-30 11:31:58 +01:00
parent 4bef27db82
commit e5aedb249f
2 changed files with 10 additions and 0 deletions

View File

@@ -82,6 +82,7 @@
'spec/core/graph.js',
'spec/core/history.js',
'spec/core/locations.js',
'spec/core/localizer.js',
'spec/core/tree.js',
'spec/core/validator.js',

View File

@@ -0,0 +1,9 @@
describe('iD.coreLocalizer', function() {
describe('#localized-text', function() {
it('appends localized text to the DOM', function() {
var selection = d3.select(document.createElement('div'));
selection.call(iD.localizer.t.append('icons.download' /* <- just any random string */));
expect(selection.selectChild().classed('localized-text')).to.be.true;
});
});
});