   #   describe 'changes projection', ->
 
   #     it 'should change the projection on input', ->
-  #       console.log "HERE"
   #       @scope.projection = 'fancyNewProjection'
   #       @scope.$digest()
   #       expect(@scope.snippet.model.data('projection')).to.eql('fancyNewProjection')

      id: 'testChoropleth'
      uiTemplateInstance: @choroplethMap
      storedData:
        map: 'aMap'
        projection: 'aProjection'
        mapName: 'aGreatName'
        data: 'someData'
        mappingPropertyOnMap: 'someProp'
        mappingPropertyOnData: 'someProp'
        valueProperty: 'someVal'

          @choroplethController = instantiateController('ChoroplethFormController',
            $scope: @scope, $http: {}, ngProgress: @ngProgress, dataService: {})

        it 'should initialize available projections', ->
          expect(@scope.projections).to.eql(choroplethMapConfig.availableProjections)


        it 'should initialize available mapping properties on map', ->
          expect(@scope.availableMapProperties).to.eql([
            label: 'id (e.g. 1)'
            value: 'id'
          ,
            label: 'name (e.g. Alabama)'
            value: 'name'
          ,
            label: 'reverseMapping (e.g. String2)'
            value: 'reverseMapping'
          ])


      describe 'for data selections', ->

        beforeEach ->
          @choroplethController = instantiateController('ChoroplethFormController',
            $scope: @scope, $http: {}, ngProgress: @ngProgress, dataService: {})


        it 'should initialize available data properties', ->
          expect(@scope.availableDataProperties).to.eql([
            label: 'id (e.g. 2)'
            key: 'id'
          ,
            label: 'reverseId (e.g. String2)'
            key: 'reverseId'
          ,
            label: 'value (e.g. 7)'
            key: 'value'
          ,
            label: 'alternativeValue (e.g. 5)'
            key: 'alternativeValue'
          ])


  # TODO: there seems to be some timing issue when changing user input...
