src/tests/extras/filters/event_labeler_builder_test.js
/**
 * Verifies that if an event hit has an existing label, the range bounds labeler
 * will replace it w/ the new one.
 */
Verifies that if an event hit has an existing label, the range bounds labeler
will replace it w/ the new one.
Verifies that if an event hit has an existing label the range bounds labeler will replace it w / the new one .
function testRangeBoundsLabeler_WithExistingLabel() {
  var hit = analytics.testing.Hits.createEventHit(100);
  hit.getParameters().set(analytics.Parameters.EVENT_LABEL, 'asdf');
  var labeler = new analytics.filters.EventLabelerBuilder().
      rangeBounds([10, 50]).
      build();
  labeler(hit);
  assertEquals('51+',
      hit.getParameters().get(analytics.Parameters.EVENT_LABEL));
}
function testRangeBoundsLabeler_WithExistingLabel ( ) { var hit = analytics . testing . Hits . createEventHit ( 100 ) ; hit . getParameters ( ) . set ( analytics . Parameters . EVENT_LABEL , 'asdf' ) ; var labeler = new analytics . filters . EventLabelerBuilder ( ) . rangeBounds ( [ 10 , 50 ] ) . build ( ) ; labeler ( hit ) ; assertEquals ( '51+' , hit . getParameters ( ) . get ( analytics . Parameters . EVENT_LABEL ) ) ; }
Verifies that if an event hit has an existing label, the range bounds labeler
 will replace it w/ the new one.
Verifies that if an event hit has an existing label the range bounds labeler will replace it w / the new one .