Use one declaration per statement
The old style of merging all of a function's variable declarations into a single statement made some sense back in the days of var, but there's no reason to keep doing it now that we use const and let.
This commit is contained in:
@@ -82,11 +82,11 @@ describe('Custom Spy Strategies (Integration)', function() {
|
||||
});
|
||||
|
||||
it('allows multiple custom strategies to be used', async function() {
|
||||
const plan1 = jasmine.createSpy('plan 1').and.returnValue(42),
|
||||
strategy1 = jasmine.createSpy('strat 1').and.returnValue(plan1),
|
||||
plan2 = jasmine.createSpy('plan 2').and.returnValue(24),
|
||||
strategy2 = jasmine.createSpy('strat 2').and.returnValue(plan2),
|
||||
specDone = jasmine.createSpy('specDone');
|
||||
const plan1 = jasmine.createSpy('plan 1').and.returnValue(42);
|
||||
const strategy1 = jasmine.createSpy('strat 1').and.returnValue(plan1);
|
||||
const plan2 = jasmine.createSpy('plan 2').and.returnValue(24);
|
||||
const strategy2 = jasmine.createSpy('strat 2').and.returnValue(plan2);
|
||||
const specDone = jasmine.createSpy('specDone');
|
||||
|
||||
env.beforeEach(function() {
|
||||
env.addSpyStrategy('frobnicate', strategy1);
|
||||
|
||||
Reference in New Issue
Block a user