1- /* globals $, jasmine, loadFixtures */
2-
3- 'use strict' ;
4-
51jasmine . getFixtures ( ) . fixturesPath = 'tests/fixtures' ;
62
7- describe ( 'The `toggle` method' , function ( ) {
3+ describe ( 'The `toggle` method' , function ( ) {
4+ 'use strict' ;
85
9- it ( 'should exists' , function ( ) {
6+ it ( 'should exists' , function ( ) {
107 loadFixtures ( 'mixed.html' ) ;
118 var el = $ ( 'body' ) . checkboxes ( ) ;
129 expect ( el . data ( 'checkboxes' ) . toggle ) . toBeDefined ( ) ;
1310 } ) ;
1411
15- it ( 'should be a function' , function ( ) {
12+ it ( 'should be a function' , function ( ) {
1613 loadFixtures ( 'mixed.html' ) ;
1714 var el = $ ( 'body' ) . checkboxes ( ) ;
1815 expect ( typeof el . data ( 'checkboxes' ) . toggle ) . toBe ( 'function' ) ;
1916 } ) ;
2017
21- it ( 'should toggle all checkboxes in context' , function ( ) {
18+ it ( 'should toggle all checkboxes in context' , function ( ) {
2219 loadFixtures ( 'mixed.html' ) ;
2320 var original = $ ( 'body' ) . clone ( ) ;
2421 var modified = $ ( 'body' ) . checkboxes ( 'toggle' ) ;
25- modified . find ( ':checkbox:not(:disabled)' ) . each ( function ( i ) {
22+ modified . find ( ':checkbox:not(:disabled)' ) . each ( function ( i ) {
2623 expect ( $ ( this ) . prop ( 'checked' ) ) . not . toBe ( original . find ( ':checkbox:not(:disabled)' ) . eq ( i ) . prop ( 'checked' ) ) ;
2724 } ) ;
2825 } ) ;
2926
30- it ( 'should toggle specified checkbox' , function ( ) {
27+ it ( 'should toggle specified checkbox' , function ( ) {
3128 // Check first checkbox.
3229 loadFixtures ( 'mixed.html' ) ;
3330 var original = $ ( ':checkbox:first' ) . clone ( ) ;
@@ -41,13 +38,13 @@ describe('The `toggle` method', function() {
4138 expect ( modified . find ( ':checkbox:last' ) . prop ( 'checked' ) ) . not . toBe ( original . prop ( 'checked' ) ) ;
4239 } ) ;
4340
44- it ( 'should toggle all checkboxes in context, but no disabled ones' , function ( ) {
41+ it ( 'should toggle all checkboxes in context, but no disabled ones' , function ( ) {
4542 loadFixtures ( 'mixed.html' ) ;
4643 var original = $ ( 'body' ) . clone ( ) ;
4744 var modified = $ ( 'body' ) . checkboxes ( 'toggle' ) ;
48- modified . find ( ':checkbox:disabled' ) . each ( function ( i ) {
45+ modified . find ( ':checkbox:disabled' ) . each ( function ( i ) {
4946 expect ( $ ( this ) . prop ( 'checked' ) ) . toBe ( original . find ( ':checkbox:disabled' ) . eq ( i ) . prop ( 'checked' ) ) ;
5047 } ) ;
5148 } ) ;
5249
53- } ) ;
50+ } ) ;
0 commit comments