revert tests to previous state
This commit is contained in:
		
							parent
							
								
									fc8dc28fb7
								
							
						
					
					
						commit
						9f63969eff
					
				
					 1 changed files with 4 additions and 8 deletions
				
			
		
							
								
								
									
										12
									
								
								test/test.js
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								test/test.js
									
										
									
									
									
								
							|  | @ -9,13 +9,7 @@ suite('Bärneruhr', function () { | |||
|     }); | ||||
| 
 | ||||
|     teardown(function () { | ||||
|         var uhr; | ||||
|         try { | ||||
|             uhr = elem.uhr('instance'); | ||||
|         } catch (e) { | ||||
|             // no work? goodbye!
 | ||||
|             return; | ||||
|         } | ||||
|         var uhr = elem.uhr('instance'); | ||||
|         if (uhr !== undefined) { | ||||
|             cleanupCookies(uhr.id); | ||||
|         } | ||||
|  | @ -35,7 +29,9 @@ suite('Bärneruhr', function () { | |||
|     } | ||||
| 
 | ||||
|     test('create and destroy widget', function () { | ||||
|         var id, uhr; | ||||
|         var uhr = elem.uhr('instance'); | ||||
|         var id; | ||||
|         assert.isUndefined(uhr); | ||||
|         elem.uhr(); | ||||
|         uhr = elem.uhr('instance'); | ||||
|         assert.isNotNull(uhr); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue