mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-29 11:21:40 +02:00
Merge pull request #7752 from peternewman/patch-6
Fix a lot of typos and initial codespell action run
This commit is contained in:
@@ -104,7 +104,7 @@ describe('iD.geo - geography', function() {
|
||||
var b = [0, 0];
|
||||
expect(iD.geoSphericalDistance(a, b)).to.eql(0);
|
||||
});
|
||||
it('a straight 1 degree line at the equator is aproximately 111 km', function() {
|
||||
it('a straight 1 degree line at the equator is approximately 111 km', function() {
|
||||
var a = [0, 0];
|
||||
var b = [1, 0];
|
||||
expect(iD.geoSphericalDistance(a, b)).to.be.closeTo(110946, 10);
|
||||
|
||||
@@ -419,7 +419,7 @@ describe('iD.Lanes', function() {
|
||||
expect(bothways.length).to.eql(0);
|
||||
|
||||
});
|
||||
it('should have corrent number of direction elements', function() {
|
||||
it('should have correct number of direction elements', function() {
|
||||
var lanes = iD.osmWay({tags: { highway: 'residential', lanes: 5, 'lanes:backward': 1, 'lanes:both_ways': 1 }}).lanes().lanes;
|
||||
var forward = lanes.filter(function(l) {
|
||||
return l.direction === 'forward';
|
||||
@@ -1018,7 +1018,7 @@ describe('iD.Lanes', function() {
|
||||
highway: 'residential',
|
||||
lanes: 5,
|
||||
maxspeed: '30kmh',
|
||||
'maxspeed:lanes': '30|40|fourty|40|40'
|
||||
'maxspeed:lanes': '30|40|forty|40|40'
|
||||
}
|
||||
}).lanes().metadata.maxspeedLanes;
|
||||
expect(maxspeedLanes.unspecified).to.deep.equal([
|
||||
@@ -1029,7 +1029,7 @@ describe('iD.Lanes', function() {
|
||||
highway: 'residential',
|
||||
lanes: 5,
|
||||
maxspeed: '30kmh',
|
||||
'maxspeed:lanes': '30|40|fourty|40|random'
|
||||
'maxspeed:lanes': '30|40|forty|40|random'
|
||||
}
|
||||
}).lanes().metadata.maxspeedLanes;
|
||||
|
||||
@@ -1057,7 +1057,7 @@ describe('iD.Lanes', function() {
|
||||
highway: 'residential',
|
||||
lanes: 5,
|
||||
maxspeed: '30kmh',
|
||||
'maxspeed:lanes': '30|40|fourty|40|40'
|
||||
'maxspeed:lanes': '30|40|forty|40|40'
|
||||
}
|
||||
}).lanes().lanes;
|
||||
var maxspeedLanes = lanes.unspecified.map(function (l) {
|
||||
|
||||
@@ -261,7 +261,7 @@ describe('iD.serviceTaginfo', function() {
|
||||
server.respondWith('GET', /\/key\/values/,
|
||||
[200, { 'Content-Type': 'application/json' },
|
||||
'{"data":[{"value":"parking","description":"A place for parking cars", "fraction":0.2},'
|
||||
+ '{"value":"PArking","description":"A common mispelling", "fraction":0.2},'
|
||||
+ '{"value":"PArking","description":"A common misspelling", "fraction":0.2},'
|
||||
+ '{"value":"parking;partying","description":"A place for parking cars *and* partying", "fraction":0.2},'
|
||||
+ '{"value":"parking, partying","description":"A place for parking cars *and* partying", "fraction":0.2},'
|
||||
+ '{"value":"*","description":"", "fraction":0.2}]}']
|
||||
|
||||
Reference in New Issue
Block a user