Style user address (with username seperate from host)
This commit is contained in:
14
tests/integration/components/account-info/component-test.js
Normal file
14
tests/integration/components/account-info/component-test.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { moduleForComponent, test } from 'ember-qunit';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
moduleForComponent('account-info', 'Integration | Component | account info', {
|
||||
integration: true
|
||||
});
|
||||
|
||||
test('it splits the user address into username and host', function(assert) {
|
||||
this.set('userAddress', 'michielbdejong@unhosted.org');
|
||||
this.render(hbs`{{account-info userAddress=userAddress}}`);
|
||||
|
||||
assert.equal(this.$('.username').text().trim(), 'michielbdejong');
|
||||
assert.equal(this.$('.host').text().trim(), '@unhosted.org');
|
||||
});
|
||||
Reference in New Issue
Block a user