All files NbaEmoji.js

100% Statements 7/7
100% Branches 4/4
100% Functions 0/0
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17    1x       224x 497x 497x 31x       1x      
'use es6';
 
import Team from './Team';
 
export default class NbaEmoji {
 
  static getEmoji(teamAbbreviation) {
    for (let team of Team.enumValues) {
      if (team.abbreviation == teamAbbreviation) {
        return team.emoji;
      }
    }
 
    throw new Error('Unknown team abbreviation');
  }
}