import DS from 'ember-data';

export default DS.Transform.extend({
  deserialize: function(serialized) {
    var map = {
      1: 'Quartet',
      2: 'Chorus',
      10: 'Seniors',
      20: 'Collegiate',
      30: 'Novice',
    };
    return map[serialized];
  },

  serialize: function(deserialized) {
    var map = {
      'Quartet': 1,
      'Chorus': 2,
      'Seniors': 10,
      'Collegiate': 20,
      'Novice': 30,
    };
    return map[deserialized];
  }
});

@@ -209,22 +209,21 @@
    30: '
-Novice
+Youth
 ',%0A    %7D
@@ -407,14 +407,13 @@
    '
-Novice
+Youth
 ': 3

Fix award-kind transformation