github.com/DerekStrickland/consul@v1.4.5/ui-v2/tests/integration/helpers/format-number-test.js (about) 1 import { moduleForComponent, test } from 'ember-qunit'; 2 import hbs from 'htmlbars-inline-precompile'; 3 4 moduleForComponent('format-number', 'helper:format-number', { 5 integration: true, 6 }); 7 8 test('it renders a formatted number when passed a number', function(assert) { 9 this.set('inputValue', 1234); 10 11 this.render(hbs`{{format-number inputValue}}`); 12 13 assert.equal( 14 this.$() 15 .text() 16 .trim(), 17 '1,234' 18 ); 19 });