Skip to content

Commit aa856ef

Browse files
committed
add comment
1 parent 2b893fd commit aa856ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/utils/get-full-version-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ module('Unit | Utility | get full version', function() {
1515
return '2.17.1';
1616
}
1717
});
18+
19+
// mock the project object hasMany relationship
20+
// hasMany('projectVersions') returns a DS.ManyArray
21+
// and getFullVersion() calls ids() on it
1822
let projectVersions = ManyArray.create({
1923
content: A([{ id: 'ember-2.17.1'}, { id: 'ember-2.16.1' }]),
2024
flushCanonical() {},
@@ -27,6 +31,7 @@ module('Unit | Utility | get full version', function() {
2731
return projectVersions;
2832
}
2933
};
34+
3035
let result = getFullVersion('release', 'ember', projectObj, metaStore);
3136
assert.equal(result, '2.17.1');
3237
});

0 commit comments

Comments
 (0)