cms/app-client/tests/integration/components/visu-carto-test.js
changeset 34 78a7be2ea5db
equal deleted inserted replaced
33:06b6b7ae4bb7 34:78a7be2ea5db
       
     1 import { moduleForComponent, test } from 'ember-qunit';
       
     2 import hbs from 'htmlbars-inline-precompile';
       
     3 
       
     4 moduleForComponent('visu-carto', 'Integration | Component | visu carto', {
       
     5   integration: true
       
     6 });
       
     7 
       
     8 test('it renders', function(assert) {
       
     9   assert.expect(2);
       
    10 
       
    11   // Set any properties with this.set('myProperty', 'value');
       
    12   // Handle any actions with this.on('myAction', function(val) { ... });
       
    13 
       
    14   this.render(hbs`{{visu-carto}}`);
       
    15 
       
    16   assert.equal(this.$().text().trim(), '');
       
    17 
       
    18   // Template block usage:
       
    19   this.render(hbs`
       
    20     {{#visu-carto}}
       
    21       template block text
       
    22     {{/visu-carto}}
       
    23   `);
       
    24 
       
    25   assert.equal(this.$().text().trim(), 'template block text');
       
    26 });