Skip to content

Commit 2530906

Browse files
committed
For "New Crates" link to the specific version shown
1 parent 54b04fc commit 2530906

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

app/templates/components/crate-list-max.hbs

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/templates/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div id='home-crates' class='crate-lists'>
3939
<section id='new-crates' data-test-new-crates aria-busy="{{dataTask.isRunning}}">
4040
<h2>New Crates</h2>
41-
{{crate-list-name-only crates=model.new_crates}}
41+
{{crate-list-newest crates=model.new_crates}}
4242
</section>
4343
<section id='most-downloaded' data-test-most-downloaded aria-busy="{{dataTask.isRunning}}">
4444
<h2>Most Downloaded</h2>

tests/acceptance/front-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module('Acceptance | front page', function(hooks) {
3535
assert.dom('[data-test-total-downloads]').hasText('122,669');
3636
assert.dom('[data-test-total-crates]').hasText('19');
3737

38-
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasText('Inflector');
38+
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasText('Inflector (0.1.6)');
3939
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasAttribute('href', '/crates/Inflector');
4040

4141
assert.dom('[data-test-most-downloaded] [data-test-crate-link="0"]').hasText('serde');

0 commit comments

Comments
 (0)