mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 20:01:33 +00:00
Merge pull request #2009 from mourner/master
Fix build and tests, add missing methods to lodash build
This commit is contained in:
2
build.js
2
build.js
@@ -122,7 +122,7 @@ function generatePresets() {
|
||||
});
|
||||
|
||||
fs.writeFileSync('data/presets/presets.json', stringify(presets));
|
||||
fs.writeFileSync('js/id/core/area_keys.js', '/* jshint -W109 */\niD.Way.areaKeys = ' + stringify(areaKeys) + ';');
|
||||
fs.writeFileSync('js/id/core/area_keys.js', '/* jshint -W109 */\niD.areaKeys = ' + stringify(areaKeys) + ';');
|
||||
|
||||
var presetsYaml = _.cloneDeep(translations);
|
||||
_.forEach(presetsYaml.presets, function(preset) {
|
||||
|
||||
1031
js/lib/lodash.js
1031
js/lib/lodash.js
File diff suppressed because it is too large
Load Diff
@@ -56,9 +56,15 @@ describe('iD.behavior.Hash', function () {
|
||||
|
||||
hash();
|
||||
|
||||
var clock = sinon.useFakeTimers();
|
||||
|
||||
context.map().center([38.9, -77.0]);
|
||||
context.map().zoom(2.0);
|
||||
|
||||
clock.tick(500);
|
||||
|
||||
expect(location.hash).to.equal('#map=2.00/38.9/-77.0');
|
||||
|
||||
clock.restore();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user