| 
									
										
										
										
											2015-01-11 17:54:36 +01:00
										 |  |  | var assert = require('assert'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var methodExists = function (object, method) { | 
					
						
							| 
									
										
										
										
											2015-01-15 11:38:21 +01:00
										 |  |  |     it('should have method ' + method + ' implemented', function() { | 
					
						
							|  |  |  |         assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented'); | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2015-01-11 17:54:36 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var propertyExists = function (object, property) { | 
					
						
							| 
									
										
										
										
											2015-01-15 11:38:21 +01:00
										 |  |  |     it('should have property ' + property + ' implemented', function() { | 
					
						
							| 
									
										
										
										
											2015-01-21 20:43:20 +01:00
										 |  |  |         assert.notEqual('undefined', typeof object[property], 'property ' + property + ' is not implemented'); | 
					
						
							| 
									
										
										
										
											2015-01-15 11:38:21 +01:00
										 |  |  |     }); | 
					
						
							| 
									
										
										
										
											2015-01-11 17:54:36 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = { | 
					
						
							|  |  |  |     methodExists: methodExists, | 
					
						
							|  |  |  |     propertyExists: propertyExists | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 |