src/tests/extras/filters/event_labeler_builder_test.js
/**
 * Asserts that when passed through the given labeler (filter), the given value
 * has the given expected value.
 *
 * @param {!analytics.Tracker.Filter} labeler
 * @param {string} expectedLabel
 * @param {!analytics.Value} val
 */
Asserts that when passed through the given labeler (filter), the given value
has the given expected value.


Asserts that when passed through the given labeler ( filter ) the given value has the given expected value .
function checkLabelerHit(labeler, expectedLabel, val) {
  var hit = analytics.testing.Hits.createEventHit(val);
  labeler(hit);
  assertEquals(
      expectedLabel, hit.getParameters().get(analytics.Parameters.EVENT_LABEL));
}
function checkLabelerHit ( labeler , expectedLabel , val ) { var hit = analytics . testing . Hits . createEventHit ( val ) ; labeler ( hit ) ; assertEquals ( expectedLabel , hit . getParameters ( ) . get ( analytics . Parameters . EVENT_LABEL ) ) ; }
Asserts that when passed through the given labeler (filter), the given value
 has the given expected value.
Asserts that when passed through the given labeler ( filter ) the given value has the given expected value .