Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Problem with indent

$
0
0

I cannot figure out why this indentation is occurring in my code:

 

 

it('should return an array of users from the group', function() {
  var result = jsom.getGroupUsers(2);
  result
  .then(function(data) {
    expect(data.length).toBe(2);
    expect(data[0].displayName).toBe('Brian');
      // why is this indented?
  });
  // this does not indent
});

 

It is not a continuation line as the line before is ended.  This code is inside of a function. 
It only seems to happen inside the then or catch blocks.

 

I am using IntelliJ 14.1.4 Ultimate.


Viewing all articles
Browse latest Browse all 5661

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>