Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 312dc3e

Browse files
committed
chore(datepicker): clean up code style
1 parent 1cba27c commit 312dc3e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Diff for: src/datepicker/test/datepicker.spec.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ describe('datepicker directive', function() {
550550
clickPreviousButton(5);
551551
expect(getTitle()).toBe('2005');
552552

553-
clickOption( 10 );
553+
clickOption(10);
554554
expect($rootScope.date).toEqual(new Date('September 30, 2010 15:30:00'));
555555
expect(getTitle()).toBe('November 2005');
556556
expect(getOptions(true)).toEqual([
@@ -562,7 +562,7 @@ describe('datepicker directive', function() {
562562
['04', '05', '06', '07', '08', '09', '10']
563563
]);
564564

565-
clickOption( 17 );
565+
clickOption(17);
566566
expect($rootScope.date).toEqual(new Date('November 16, 2005 15:30:00'));
567567
});
568568
});
@@ -1327,7 +1327,7 @@ describe('datepicker directive', function() {
13271327
});
13281328
});
13291329

1330-
describe('initially opened', function () {
1330+
describe('initially opened', function() {
13311331
var wrapElement;
13321332

13331333
beforeEach(inject(function(_$document_, _$sniffer_, _$timeout_) {
@@ -1399,7 +1399,7 @@ describe('datepicker directive', function() {
13991399
['26', '27', '28', '29', '30', '01', '02'],
14001400
['03', '04', '05', '06', '07', '08', '09']
14011401
]);
1402-
expectSelectedElement( 17 );
1402+
expectSelectedElement(17);
14031403
});
14041404

14051405
it('closes when click outside of calendar', function() {
@@ -1572,7 +1572,7 @@ describe('datepicker directive', function() {
15721572
['23', '24', '25', '26', '27', '28', '29'],
15731573
['30', '31', '01', '02', '03', '04', '05']
15741574
]);
1575-
expect(selectedElementIndex()).toEqual( 10 );
1575+
expect(selectedElementIndex()).toEqual(10);
15761576
});
15771577

15781578
it('works as datetime-local', function() {
@@ -1593,7 +1593,7 @@ describe('datepicker directive', function() {
15931593
['23', '24', '25', '26', '27', '28', '29'],
15941594
['30', '31', '01', '02', '03', '04', '05']
15951595
]);
1596-
expect(selectedElementIndex()).toEqual( 10 );
1596+
expect(selectedElementIndex()).toEqual(10);
15971597
});
15981598

15991599
it('works as month', function() {
@@ -1612,7 +1612,7 @@ describe('datepicker directive', function() {
16121612
['July', 'August', 'September'],
16131613
['October', 'November', 'December']
16141614
]);
1615-
expect(selectedElementIndex()).toEqual( 2 );
1615+
expect(selectedElementIndex()).toEqual(2);
16161616
});
16171617

16181618
function setupInputWithType(type) {
@@ -1626,7 +1626,7 @@ describe('datepicker directive', function() {
16261626
});
16271627

16281628
describe('attribute `datepickerOptions`', function() {
1629-
describe('show-weeks', function(){
1629+
describe('show-weeks', function() {
16301630
beforeEach(function() {
16311631
$rootScope.opts = {
16321632
'show-weeks': false
@@ -2093,7 +2093,7 @@ describe('datepicker directive', function() {
20932093
$rootScope.date = new Date();
20942094
});
20952095

2096-
afterEach(function () {
2096+
afterEach(function() {
20972097
$document.find('body').find('.dropdown-menu').remove();
20982098
});
20992099

@@ -2531,7 +2531,6 @@ describe('datepicker deprecation', function() {
25312531

25322532
$log.warn.calls.reset();
25332533

2534-
25352534
element = $compile('<input type="date" datepicker-popup ng-model="dt" />')($rootScope);
25362535
$rootScope.$digest();
25372536

0 commit comments

Comments
 (0)