title: Testing empty object in Jasmine fails
body: <p>If I have a variable setting to <code>{}</code> the following match errors</p>
  
  <pre><code>// Somewhere in my angular controller
  self = this;
  self.myVar = {};
  
  
  // In my test file
  // This errors out. I console.log myVar to make sure that it is indeed {}
  expect(myVar).toEqual({});
  
  // Note if I define myVar = {} in the same test spec it works
  it('test', function(){
     var myVar = {};
     expect(myCtrl.myVar).toEqual({});
     expect({}).toEqual({});
  });
  </code></pre>
  
  <p>What is the reason for this and how would you by pass this behavior? According to Jasmine doc</p>
  
  <pre><code>it("should work for objects", function() {
    var foo = {
      a: 12,
      b: 34
    };
    var bar = {
      a: 12,
      b: 34
    };
    expect(foo).toEqual(bar);
  </code></pre>
  
  <p>It seems like toEqual should test for object content?</p>