mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			935 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			935 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| const ClientMetricsStore = require('./fake-metrics-store');
 | |
| const clientInstanceStore = require('./fake-client-instance-store');
 | |
| const clientApplicationsStore = require('./fake-client-applications-store');
 | |
| const featureToggleStore = require('./fake-feature-toggle-store');
 | |
| const eventStore = require('./fake-event-store');
 | |
| const strategyStore = require('./fake-strategies-store');
 | |
| 
 | |
| module.exports = {
 | |
|     createStores: () => {
 | |
|         const db = {
 | |
|             select: () => ({
 | |
|                 from: () => Promise.resolve(),
 | |
|             }),
 | |
|         };
 | |
| 
 | |
|         return {
 | |
|             db,
 | |
|             clientApplicationsStore: clientApplicationsStore(),
 | |
|             clientMetricsStore: new ClientMetricsStore(),
 | |
|             clientInstanceStore: clientInstanceStore(),
 | |
|             featureToggleStore: featureToggleStore(),
 | |
|             eventStore: eventStore(),
 | |
|             strategyStore: strategyStore(),
 | |
|         };
 | |
|     },
 | |
| };
 |