mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	 2c7cadb731
			
		
	
	2c7cadb731
	
	
	
		
			
			metrics route takes start and end params and passes to the date display field, as well as the route's API call
		
			
				
	
	
		
			27 lines
		
	
	
		
			775 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			775 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { module, test } from 'qunit';
 | |
| import { setupRenderingTest } from 'ember-qunit';
 | |
| import { render } from '@ember/test-helpers';
 | |
| import hbs from 'htmlbars-inline-precompile';
 | |
| 
 | |
| module('Integration | Component | form-error', function(hooks) {
 | |
|   setupRenderingTest(hooks);
 | |
| 
 | |
|   test('it renders', async function(assert) {
 | |
|     // Set any properties with this.set('myProperty', 'value');
 | |
|     // Handle any actions with this.set('myAction', function(val) { ... });
 | |
| 
 | |
|     await render(hbs`{{form-error}}`);
 | |
| 
 | |
|     assert.equal(this.element.textContent.trim(), '');
 | |
| 
 | |
|     // Template block usage:
 | |
|     await render(hbs`
 | |
|       {{#form-error}}
 | |
|         template block text
 | |
|       {{/form-error}}
 | |
|     `);
 | |
| 
 | |
|     assert.equal(this.element.textContent.trim(), 'template block text');
 | |
|   });
 | |
| });
 |