Skip to content

Commit

Permalink
fixed lint for unit test again
Browse files Browse the repository at this point in the history
  • Loading branch information
ToMaarton committed Oct 18, 2024
1 parent b196b80 commit 7a2252a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/photo-album.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class PhotoAlbum extends Model {
var counter = 0;
this.photos.content.forEach((photo) => {
counter += photo.amountOfTags > 0 ? 1 : 0;
})
});
return counter;
}

Expand Down
6 changes: 5 additions & 1 deletion tests/unit/models/photo-album-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ module('Unit | Model | photo-album', function (hooks) {
photos[1].amountOfTags = 1;
photos[2].amountOfTags = 5;
assert.equal(album.amountOfPhotos, 3, 'Amount of photos is correct');
assert.equal(album.amountOfTaggedPhotos, 2, 'Amount of tagged photos in album is correct');
assert.equal(
album.amountOfTaggedPhotos,
2,
'Amount of tagged photos in album is correct'
);
});
});

0 comments on commit 7a2252a

Please sign in to comment.