mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
add basic test case for t.append method
This commit is contained in:
@@ -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',
|
||||
|
||||
|
||||
9
test/spec/core/localizer.js
Normal file
9
test/spec/core/localizer.js
Normal 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;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user