You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | // tslint:disable: no-implicit-dependencies
 | 
					
						
							|  |  |  | import chai from 'chai'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import chaiAsPromised from 'chai-as-promised'; | 
					
						
							|  |  |  | import Sinon from 'sinon'; | 
					
						
							|  |  |  | chai.use(chaiAsPromised as any); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | describe('SyncUtils', () => { | 
					
						
							|  |  |  |   afterEach(() => { | 
					
						
							|  |  |  |     Sinon.restore(); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   describe('syncConfigurationIfNeeded', () => { | 
					
						
							|  |  |  |     it('sync if last sync undefined', () => { | 
					
						
							|  |  |  |       // TestUtils.stubData('getItemById').resolves(undefined);
 | 
					
						
							|  |  |  |       // sandbox.stub(ConversationController, 'getConversations').returns([]);
 | 
					
						
							|  |  |  |       // const getCurrentConfigurationMessageSpy = sandbox.spy(MessageUtils, 'getCurrentConfigurationMessage');
 | 
					
						
							|  |  |  |       // await syncConfigurationIfNeeded();
 | 
					
						
							|  |  |  |       // expect(getCurrentConfigurationMessageSpy.callCount).equal(1);
 | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); |