f57a59d767
If the appended element was a child of another element it was removed from that element. This caused console.logging a child element to remove it from the parent.
15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
describe('console.log', function() {
|
|
it('should succeed, but with a console.log', function() {
|
|
console.log("hello");
|
|
expect(success).toEqual(1);
|
|
});
|
|
|
|
it("wont eat my precious jqueries", function() {
|
|
var d = $('<div><div id="inner">b</div></div>');
|
|
expect(d.find('#inner').length).toBe(1);
|
|
console.log(d.find('#inner'));
|
|
expect(d.find('#inner').length).toBe(1);
|
|
});
|
|
});
|
|
|