Skip to content

Commit 6c92c25

Browse files
committed
Fix project users to render three full rows
1 parent a33aa20 commit 6c92c25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/templates/components/project-users.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h4>People <span>{{count}}</span></h4>
22
<ul>
3-
{{#each (slice 0 15 users) as |user|}}
3+
{{#each (slice 0 18 users) as |user|}}
44
<li>
55
{{#link-to 'slugged-route' user.username}}
66
{{#if user.isLoaded}}

tests/integration/components/project-users-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('it renders an item for each member in the list', function(assert) {
2020
assert.expect(2);
2121

2222
let mockUsers = [];
23-
for (let i = 1; i <= 3; i++) {
23+
for (let i = 1; i <= 19; i++) {
2424
mockUsers.push({
2525
id: i,
2626
isLoaded: true,
@@ -31,7 +31,7 @@ test('it renders an item for each member in the list', function(assert) {
3131
set(this, 'users', mockUsers);
3232
page.render(hbs`{{project-users users=users}}`);
3333

34-
assert.equal(page.userCount, 3, 'The correct number of users are rendered');
34+
assert.equal(page.userCount, 18, 'The correct number of users are rendered');
3535
assert.ok(page.users(0).imageSource.indexOf('image_1.png') > -1, 'The correct photo renders');
3636
});
3737

0 commit comments

Comments
 (0)