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

Commit 8f18eda

Browse files
committed
test(directiveOptions): fix typos, correcting tests
1 parent 560be12 commit 8f18eda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/sortable.e2e.directiveoptions.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ describe('uiSortable', function() {
8585
var element;
8686
element = $compile(''.concat(
8787
'<ul ui-sortable="opts" ng-model="items">',
88-
beforeEach,
89-
'<li class="floatleft" ng-repeat="item in items" id="s-{{$index}}" class="sortable-item">{{ item }}</li>',
90-
afterLiElement,
88+
beforeLiElement.replace('<li>', '<li class="floatleft">'),
89+
'<li ng-repeat="item in items" id="s-{{$index}}" class="sortable-item floatleft">{{ item }}</li>',
90+
afterLiElement.replace('<li>', '<li class="floatleft">'),
9191
'</ul>'))($rootScope);
9292
$rootScope.$apply(function() {
9393
$rootScope.opts = {
@@ -125,9 +125,9 @@ describe('uiSortable', function() {
125125
var element;
126126
element = $compile(''.concat(
127127
'<ul ui-sortable="opts" ng-model="items">',
128-
beforeEach,
129-
'<li class="floatleft" ng-repeat="item in items" id="s-{{$index}}" class="sortable-item">{{ item }}</li>',
130-
afterLiElement,
128+
beforeLiElement.replace('<li>', '<li class="floatleft">'),
129+
'<li ng-repeat="item in items" id="s-{{$index}}" class="sortable-item floatleft">{{ item }}</li>',
130+
afterLiElement.replace('<li>', '<li class="floatleft">'),
131131
'</ul>'))($rootScope);
132132
$rootScope.$apply(function() {
133133
$rootScope.opts = {
@@ -166,7 +166,7 @@ describe('uiSortable', function() {
166166
element = $compile(''.concat(
167167
'<ul ui-sortable="opts" ng-model="items">',
168168
beforeLiElement.replace('<li>', '<li class="inline-block">'),
169-
'<li class="inline-block" ng-repeat="item in items" id="s-{{$index}}" class="sortable-item">{{ item }}</li>',
169+
'<li ng-repeat="item in items" id="s-{{$index}}" class="sortable-item inline-block">{{ item }}</li>',
170170
afterLiElement.replace('<li>', '<li class="inline-block">'),
171171
'</ul>'))($rootScope);
172172
$rootScope.$apply(function() {

0 commit comments

Comments
 (0)