.l-main-section
  h2(class="function export") beforeEachBindings
  
  pre.prettyprint
    code.
      beforeEachBindings(fn: any)
  
  p.location-badge.
    exported from angular2/test
    defined in angular2/src/test_lib/test_lib.ts (line 109)
  :markdown
    Allows overriding default bindings defined in test_injector.js.
    
    The given function must return a list of DI bindings.
    
    Example:
    
      beforeEachBindings(() => [
        bind(Compiler).toClass(MockCompiler),
        bind(SomeToken).toValue(myValue),
      ]);