Skip to content

Commit

Permalink
update test after re-building icon map
Browse files Browse the repository at this point in the history
ref #65
  • Loading branch information
maxgrossman committed Aug 30, 2019
1 parent 08b00c6 commit 5975924
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,23 +205,19 @@ describe('helpers', () => {
});
describe('getIcon', () => {
it('returns icon for given set of tags', () => {
var restaurant = new Set([
[
[
{ key: 'amenity', val: 'fast_food' },
{ key: 'cuisine', val: 'sandwich' }
],
[
{ key: 'cuisine', val: 'sandwich' },
{ key: 'amenity', val: 'fast_food' }
{ key: 'cuisine', val: 'kebab' }
],
[
{ key: 'cuisine', val: 'american' },
{ key: 'amenity', val: 'restaurant' }
]
].map(getIcon));

expect(restaurant.size).to.eql(1);
expect(restaurant.values().next().value).to.eql('maki-restaurant');
].map(function(tags) {
let icon = getIcon(tags);
expect(icon).to.eql('maki-restaurant');
});
});
it('returns maki-natural if nothing found', () => {
const primary = [
Expand Down

0 comments on commit 5975924

Please sign in to comment.