From 65e6df55ee094487913025e04b9474569a3b43ad Mon Sep 17 00:00:00 2001 From: Elliot Nelson Date: Thu, 20 Jun 2019 07:34:31 -0400 Subject: [PATCH] Linting fixes --- spec/core/SpySpec.js | 8 ++++++-- src/core/SpyFactory.js | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/spec/core/SpySpec.js b/spec/core/SpySpec.js index 2295d8a6..b1165dd3 100644 --- a/spec/core/SpySpec.js +++ b/spec/core/SpySpec.js @@ -203,7 +203,9 @@ describe('Spies', function() { expect(spyObj.prop2).toEqual(37); spyObj.prop2 = 4; expect(spyObj.prop2).toEqual(37); - expect(Object.getOwnPropertyDescriptor(spyObj, 'prop2').set.calls.count()).toBe(1); + expect( + Object.getOwnPropertyDescriptor(spyObj, 'prop2').set.calls.count() + ).toBe(1); }); it('allows base name to be ommitted when assigning methods and properties', function() { @@ -211,7 +213,9 @@ describe('Spies', function() { expect(spyObj.m()).toEqual(3); expect(spyObj.p).toEqual(4); - expect(Object.getOwnPropertyDescriptor(spyObj, 'p').get.and.identity).toEqual('unknown.p.get'); + expect( + Object.getOwnPropertyDescriptor(spyObj, 'p').get.and.identity + ).toEqual('unknown.p.get'); }); }); diff --git a/src/core/SpyFactory.js b/src/core/SpyFactory.js index d7446cb7..d9cdc228 100644 --- a/src/core/SpyFactory.js +++ b/src/core/SpyFactory.js @@ -21,7 +21,9 @@ getJasmineRequireObj().SpyFactory = function(j$) { var methods = normalizeKeyValues(methodNames); for (var i = 0; i < methods.length; i++) { - spy = obj[methods[i][0]] = self.createSpy(baseName + '.' + methods[i][0]); + spy = obj[methods[i][0]] = self.createSpy( + baseName + '.' + methods[i][0] + ); if (methods[i].length > 1) { spy.and.returnValue(methods[i][1]); }