Merge pull request #2009 from mourner/master

Fix build and tests, add missing methods to lodash build
This commit is contained in:
John Firebaugh
2013-11-21 15:26:04 -08:00
3 changed files with 671 additions and 368 deletions

View File

@@ -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) {

File diff suppressed because it is too large Load Diff

View File

@@ -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();
});
});