diff options
| -rw-r--r-- | example/personalLog/test/personalLogSpec.js | 4 | ||||
| -rw-r--r-- | scenario/datastore-scenarios.js | 8 | ||||
| -rw-r--r-- | src/widgets.js | 8 | ||||
| -rw-r--r-- | test/BrowserSpecs.js | 2 | 
4 files changed, 11 insertions, 11 deletions
| diff --git a/example/personalLog/test/personalLogSpec.js b/example/personalLog/test/personalLogSpec.js index 7502ff21..3e6935a3 100644 --- a/example/personalLog/test/personalLogSpec.js +++ b/example/personalLog/test/personalLogSpec.js @@ -11,7 +11,7 @@ describe('example.personalLog.LogCtrl', function() {    beforeEach(function() {      logCtrl = createNotesCtrl();    }); -   +    it('should initialize notes with an empty array', function() {      expect(logCtrl.logs).toEqual([]); @@ -28,7 +28,7 @@ describe('example.personalLog.LogCtrl', function() {      it('should add newMsg to logs as a log entry', function() {        logCtrl.newMsg = 'first log message';        logCtrl.addLog(); -       +        expect(logCtrl.logs.length).toBe(1);        expect(logCtrl.logs[0].msg).toBe('first log message'); diff --git a/scenario/datastore-scenarios.js b/scenario/datastore-scenarios.js index 6038070b..a844ac53 100644 --- a/scenario/datastore-scenarios.js +++ b/scenario/datastore-scenarios.js @@ -1,8 +1,8 @@  angular.scenarioDef.datastore = {    $before:[ -    {Given:"dataset",  +    {Given:"dataset",        dataset:{ -        Book:[{$id:'moby', name:"Moby Dick"},  +        Book:[{$id:'moby', name:"Moby Dick"},                {$id:'gadsby', name:'Great Gadsby'}]        }      }, @@ -10,10 +10,10 @@ angular.scenarioDef.datastore = {    ],    checkLoadBook:[      {Then:"drainRequestQueue"}, -                  +      {Then:"text", at:"{{book.$id}}", should_be:"moby"},      {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"},      {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"}, -     +    ]  }; diff --git a/src/widgets.js b/src/widgets.js index 8caf0a7b..6aa0227c 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -837,16 +837,16 @@ angularWidget('a', function() {   *   * @description   * The `ng:repeat` widget instantiates a template once per item from a collection. The collection is - * enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets  - * its own scope, where the given loop variable is set to the current collection item, and `$index`  + * enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets + * its own scope, where the given loop variable is set to the current collection item, and `$index`   * is set to the item index or key.   *   * Special properties are exposed on the local scope of each template instance, including:   *   *   * `$index` – `{number}` – iterator offset of the repeated element (0..length-1) - *   * `$position` – `{string}` – position of the repeated element in the iterator. One of:  + *   * `$position` – `{string}` – position of the repeated element in the iterator. One of:   *        * `'first'`, - *        * `'middle'`  + *        * `'middle'`   *        * `'last'`   *   * Note: Although `ng:repeat` looks like a directive, it is actually an attribute widget. diff --git a/test/BrowserSpecs.js b/test/BrowserSpecs.js index 5a18e1b9..45fb0ed9 100644 --- a/test/BrowserSpecs.js +++ b/test/BrowserSpecs.js @@ -123,7 +123,7 @@ describe('browser', function(){        expect(code).toEqual(202);        expect(response).toEqual('RESPONSE');      }); -     +      it('should not set Content-type header for GET requests', function() {        browser.xhr('GET', 'URL', 'POST-DATA', function(c, r) {}); | 
