b21d2ad864
To use the same code in hubot I extracted the serializer logic into lib to later move it into `truffle-kredits` when we are done with all other common logic.
11 lines
338 B
JavaScript
11 lines
338 B
JavaScript
import { moduleFor, test } from 'ember-qunit';
|
|
|
|
moduleFor('model:contributor', 'Unit | Model | contributor');
|
|
|
|
test('#avatarURL() returns correct URL', function(assert) {
|
|
let model = this.subject();
|
|
model.set('github_uid', '318');
|
|
|
|
assert.equal(model.get('avatarURL'), 'https://avatars2.githubusercontent.com/u/318?v=3&s=128');
|
|
});
|