mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-26 16:46:12 +01:00 
			
		
		
		
	test: show objects on fail
This commit is contained in:
		| @@ -147,7 +147,7 @@ describe('Analytics', () => { | |||||||
|  |  | ||||||
| 		const metrics = ['activities', 'activities:byType:Like', 'activities:byHost:example.org']; | 		const metrics = ['activities', 'activities:byType:Like', 'activities:byHost:example.org']; | ||||||
| 		metrics.forEach((metric) => { | 		metrics.forEach((metric) => { | ||||||
| 			assert(before[metric] && after[metric]); | 			assert(before[metric] && after[metric], JSON.stringify({ before, after }, null, 2)); | ||||||
| 			assert(before[metric] < after[metric]); | 			assert(before[metric] < after[metric]); | ||||||
| 		}); | 		}); | ||||||
| 	}); | 	}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user