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.