-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added appendTo and prependTo with tests see #641 #726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -496,6 +496,24 @@ describe('$(...)', function() { | |
}); | ||
}); | ||
|
||
describe('.appendTo', function() { | ||
|
||
it('(Node) : should add element as last child', function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test description is incorrect. It describes a Node-accepting signature, but the test invokes |
||
$('<li class="plum">Plum</li>').appendTo($fruits); | ||
expect($fruits.children().eq(3).hasClass('plum')).to.be.ok(); | ||
}); | ||
|
||
}); | ||
|
||
describe('.prependTo', function() { | ||
|
||
it('(html) : should add element as first child', function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test description is incorrect. It describes an HTML-accepting signature, but the test invokes |
||
$('<li class="plum">Plum</li>').prependTo($fruits); | ||
expect($fruits.children().eq(0).hasClass('plum')).to.be.ok(); | ||
}); | ||
|
||
}); | ||
|
||
describe('.after', function() { | ||
|
||
it('() : should do nothing', function() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This project uses two-space soft tabs. Could you change the code style here to match?