aboutsummaryrefslogtreecommitdiffstats
path: root/test/jQueryPatchSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jQueryPatchSpec.js')
-rw-r--r--test/jQueryPatchSpec.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/jQueryPatchSpec.js b/test/jQueryPatchSpec.js
index 0953bdac..19f4d821 100644
--- a/test/jQueryPatchSpec.js
+++ b/test/jQueryPatchSpec.js
@@ -2,14 +2,14 @@
if (window.jQuery) {
- describe('jQuery patch', function(){
+ describe('jQuery patch', function() {
var doc = null;
var divSpy = null;
var spy1 = null;
var spy2 = null;
- beforeEach(function(){
+ beforeEach(function() {
divSpy = jasmine.createSpy('div.$destroy');
spy1 = jasmine.createSpy('span1.$destroy');
spy2 = jasmine.createSpy('span2.$destroy');
@@ -18,7 +18,7 @@ if (window.jQuery) {
doc.find('span.second').bind('$destroy', spy2);
});
- afterEach(function(){
+ afterEach(function() {
expect(divSpy).not.toHaveBeenCalled();
expect(spy1).toHaveBeenCalled();
@@ -27,29 +27,29 @@ if (window.jQuery) {
expect(spy2.callCount).toEqual(1);
});
- describe('$detach event', function(){
+ describe('$detach event', function() {
- it('should fire on detach()', function(){
+ it('should fire on detach()', function() {
doc.find('span').detach();
});
- it('should fire on remove()', function(){
+ it('should fire on remove()', function() {
doc.find('span').remove();
});
- it('should fire on replaceWith()', function(){
+ it('should fire on replaceWith()', function() {
doc.find('span').replaceWith('<b>bla</b>');
});
- it('should fire on replaceAll()', function(){
+ it('should fire on replaceAll()', function() {
$('<b>bla</b>').replaceAll(doc.find('span'));
});
- it('should fire on empty()', function(){
+ it('should fire on empty()', function() {
doc.empty();
});
- it('should fire on html()', function(){
+ it('should fire on html()', function() {
doc.html('abc');
});
});