8000 Changed commented test, to use single quotes. · angular-ui/ui-sortable@3770a97 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 3770a97

Browse files
committed
Changed commented test, to use single quotes.
1 parent 1a853d9 commit 3770a97

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/sortable.spec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -576,14 +576,14 @@ describe('uiSortable', function() {
576576
// elementTop = $compile('<ul ui-sortable="opts" class="cross-sortable" ng-model="itemsTop"><li ng-repeat="item in itemsTop" id="s-top-{{$index}}">{{ item }}</li></ul>')($rootScope);
577577
// elementBottom = $compile('<ul ui-sortable="opts" class="cross-sortable" ng-model="itemsBottom"><li ng-repeat="item in itemsBottom" id="s-bottom-{{$index}}">{{ item }}</li></ul>')($rootScope);
578578
// $rootScope.$apply(function() {
579-
// $rootScope.itemsTop = ["Top One", "Top Two", "Top Three"];
580-
// $rootScope.itemsBottom = ["Bottom One", "Bottom Two", "Bottom Three"];
579+
// $rootScope.itemsTop = ['Top One', 'Top Two', 'Top Three'];
580+
// $rootScope.itemsBottom = ['Bottom One', 'Bottom Two', 'Bottom Three'];
581581
// $rootScope.opts = {
582-
// connectWith: ".cross-sortable",
582+
// connectWith: '.cross-sortable',
583583
// update: function(e, ui) {
584584
// if (ui.item.scope() &&
585585
// (typeof ui.item.scope().item === 'string') &&
586-
// ui.item.scope().item.indexOf("Two") >= 0) {
586+
// ui.item.scope().item.indexOf('Two') >= 0) {
587587
// ui.item.parent().sortable('cancel');
588588
// }
589589
// }
@@ -596,35 +596,35 @@ describe('uiSortable', function() {
596596
// var li2 = elementBottom.find(':eq(0)');
597597
// var dy = EXTRA_DY_PERCENTAGE * li1.outerHeight() + (li2.position().top - li1.position().top);
598598
// li1.simulate('drag', { dy: dy });
599-
// expect($rootScope.itemsTop).toEqual(["Top One", "Top Two", "Top Three"]);
600-
// expect($rootScope.itemsBottom).toEqual(["Bottom One", "Bottom Two", "Bottom Three"]);
599+
// expect($rootScope.itemsTop).toEqual(['Top One', 'Top Two', 'Top Three']);
600+
// expect($rootScope.itemsBottom).toEqual(['Bottom One', 'Bottom Two', 'Bottom Three']);
601601
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
602602
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
603603

604604
// li1 = elementBottom.find(':eq(1)');
605605
// li2 = elementTop.find(':eq(1)');
606606
// dy = -EXTRA_DY_PERCENTAGE * li1.outerHeight() - (li1.position().top - li2.position().top);
607607
// li1.simulate('drag', { dy: dy });
608-
// expect($rootScope.itemsTop).toEqual(["Top One", "Top Two", "Top Three"]);
609-
// expect($rootScope.itemsBottom).toEqual(["Bottom One", "Bottom Two", "Bottom Three"]);
608+
// expect($rootScope.itemsTop).toEqual(['Top One', 'Top Two', 'Top Three']);
609+
// expect($rootScope.itemsBottom).toEqual(['Bottom One', 'Bottom Two', 'Bottom Three']);
610610
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
611611
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
612612

613613
// li1 = elementTop.find(':eq(0)');
614614
// li2 = elementBottom.find(':eq(0)');
615615
// dy = EXTRA_DY_PERCENTAGE * li1.outerHeight() + (li2.position().top - li1.position().top);
616616
// li1.simulate('drag', { dy: dy });
617-
// expect($rootScope.itemsTop).toEqual(["Top Two", "Top Three"]);
618-
// expect($rootScope.itemsBottom).toEqual(["Bottom One", "Top One", "Bottom Two", "Bottom Three"]);
617+
// expect($rootScope.itemsTop).toEqual(['Top Two', 'Top Three']);
618+
// expect($rootScope.itemsBottom).toEqual(['Bottom One', 'Top One', 'Bottom Two', 'Bottom Three']);
619619
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
620620
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
621621

622622
// li1 = elementBottom.find(':eq(1)');
623623
// li2 = elementTop.find(':eq(1)');
624624
// dy = -EXTRA_DY_PERCENTAGE * li1.outerHeight() - (li1.position().top - li2.position().top);
625625
// li1.simulate('drag', { dy: dy });
626-
// expect($rootScope.itemsTop).toEqual(["Top Two", "Top One", "Top Three"]);
627-
// expect($rootScope.itemsBottom).toEqual(["Bottom One", "Bottom Two", "Bottom Three"]);
626+
// expect($rootScope.itemsTop).toEqual(['Top Two', 'Top One', 'Top Three']);
627+
// expect($rootScope.itemsBottom).toEqual(['Bottom One', 'Bottom Two', 'Bottom Three']);
628628
// expect($rootScope.itemsTop).toEqualListContent(elementTop);
629629
// expect($rootScope.itemsBottom).toEqualListContent(elementBottom);
630630

0 commit comments

Comments
 (0)
0