lib/core/tgi-core-store.spec.js
function createLines() {
        var moesLine = new self.StoogeLine();
        moesLine.set('Scene', 1);
        moesLine.set('SetID', self.indoorSet.get('id'));
        moesLine.set('StoogeID', self.moe.get('id'));
        moesLine.set('Line', 'To be or not to be?');
        var larrysLine = new self.StoogeLine();
        larrysLine.set('Scene', 2);
        larrysLine.set('SetID', self.desertSet.get('id'));
        larrysLine.set('StoogeID', self.larry.get('id'));
        larrysLine.set('Line', 'That is the question!');
        spec.integrationStore.putModel(moesLine, function (model, error) {
          if (typeof error != 'undefined') {
            callback(error);
          } else {
            spec.integrationStore.putModel(larrysLine, function (model, error) {
              if (typeof error != 'undefined') {
                callback(error);
              } else {
                createView();
              }
            });
          }
        });
      }
function createLines() {
        var moesLine = new self.StoogeLine();
        moesLine.set('Scene', 1);
        moesLine.set('SetID', self.indoorSet.get('id'));
        moesLine.set('StoogeID', self.moe.get('id'));
        moesLine.set('Line', 'To be or not to be?');
        var larrysLine = new self.StoogeLine();
        larrysLine.set('Scene', 2);
        larrysLine.set('SetID', self.desertSet.get('id'));
        larrysLine.set('StoogeID', self.larry.get('id'));
        larrysLine.set('Line', 'That is the question!');
        spec.integrationStore.putModel(moesLine, function (model, error) {
          if (typeof error != 'undefined') {
            callback(error);
          } else {
            spec.integrationStore.putModel(larrysLine, function (model, error) {
              if (typeof error != 'undefined') {
                callback(error);
              } else {
                createView();
              }
            });
          }
        });
      }
function createLines ( ) { var moesLine = new self . StoogeLine ( ) ; moesLine . set ( 'Scene' , 1 ) ; moesLine . set ( 'SetID' , self . indoorSet . get ( 'id' ) ) ; moesLine . set ( 'StoogeID' , self . moe . get ( 'id' ) ) ; moesLine . set ( 'Line' , 'To be or not to be?' ) ; var larrysLine = new self . StoogeLine ( ) ; larrysLine . set ( 'Scene' , 2 ) ; larrysLine . set ( 'SetID' , self . desertSet . get ( 'id' ) ) ; larrysLine . set ( 'StoogeID' , self . larry . get ( 'id' ) ) ; larrysLine . set ( 'Line' , 'That is the question!' ) ; spec . integrationStore . putModel ( moesLine , function ( model , error ) { if ( typeof error != 'undefined' ) { callback ( error ) ; } else { spec . integrationStore . putModel ( larrysLine , function ( model , error ) { if ( typeof error != 'undefined' ) { callback ( error ) ; } else { createView ( ) ; } } ) ; } } ) ; }
Prepare the rest of the store for testing getList with View type list
Prepare the rest of the store for testing getList with View type list