title: Use jasmine to expect that a function has been assigned to a variable?
body: <p>Take the following example es6 class:</p>
  
  <pre><code>export default class sellerController {
      saveOrUpdate(){
          return this.id ? this.updateSettings.bind(this) : this.saveNewSettings.bind(this);
      }
  }
  </code></pre>
  
  <p>I'm trying to build a unit test for that saveOrUpdateMethod.</p>
  
  <pre><code>it("Should select between save or update if id is or isn't set", function() {
  
        var saveOrUpdate = SellerDetailsCtrl.saveOrUpdate();
        expect(saveOrUpdate).toEqual(SellerDetailsCtrl.updateSettings.bind(SellerDetailsCtrl))
      });
  </code></pre>
  
  <p>But that doesn't seem to work. Error is </p>
  
  <blockquote>
    <p>Expected Function to equal Function.</p>
  </blockquote>
  
  <p>Is it even possible to do that? Validate that i have assigned a specific function, bound, to a variable?</p>