title: Unit Testing Array Push
body: <p>This is probably a super obvious thing I'm missing but I'm trying to to push an existing object from one array into another for testing purposes but my tests keep failing.</p>
  
  <p><strong>View Model</strong></p>
  
  <pre><code>this.userDatabases = ko.observableArray();
  this.databases = _.range(5).map(function (i) {
      return {
          name: 'DB ' + (i + 1),
          chosenRoles: ko.observableArray(),
          chosenModules: ko.observableArray()
      };
  });
  </code></pre>
  
  <p><strong>Unit Tests</strong></p>
  
  <pre><code>describe('modifies a new user by', function () {
  
      it('adding a database', function () {
          vm = new pfp.insight.controllers.settingsController();
  
          vm.userDatabases.push(vm.databases[0]);
  
          expect(vm.userDatabases.length).toEqual(1);
      });
  });
  </code></pre>
  
  <p>This test is saying "Expected 0 to equal 1" and I'm not sure why the userDatabases isn't receiving the first object from the databases array.</p>