mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	adds test for restore method on authenticator
This commit is contained in:
		
							parent
							
								
									2e873b64d5
								
							
						
					
					
						commit
						39fff3e182
					
				@ -36,3 +36,10 @@ test('Authenticate methods work as expected', async function(assert) {
 | 
			
		||||
  assert.ok(typeof response.then === 'function', 'returns a Promise object or thennable');
 | 
			
		||||
  assert.equal((await response).username, data.username, 'authenticate correctly resolves with api response');
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('Restore method works as expected', function(assert) {
 | 
			
		||||
  const authenticator = new Authenticator();
 | 
			
		||||
  const response = authenticator.restore();
 | 
			
		||||
 | 
			
		||||
  assert.ok(typeof response.then === 'function', 'returns a Promise object or thennable');
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user