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

Commit

Permalink
fix(test): with jQuery, .css(top/left) returns px instead of %
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 31, 2013
1 parent 7e88f49 commit 4aa8f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/layout.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('uiLayout', function () {
});

it('should have a split bar at the middle', function () {
expect(element.children().eq(1).css('left')).toEqual('50%');
expect(element.children().eq(1)[0].style.left).toEqual('50%');
});
});

Expand All @@ -164,7 +164,7 @@ describe('uiLayout', function () {
});

it('should have a split bar at the middle', function () {
expect(element.children().eq(1).css('top')).toEqual('50%');
expect(element.children().eq(1)[0].style.top).toEqual('50%');
});
});

Expand Down

0 comments on commit 4aa8f73

Please sign in to comment.