Skip to content

Commit 5a44e7b

Browse files
committed
there should be 1 and only 1 featured track
1 parent 2894923 commit 5a44e7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/content/lint-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ describe('lint learning tracks', () => {
712712
})
713713

714714
it('has at least one featured track', () => {
715-
expect(Object.values(dictionary).some(entry => entry.featured_track)).toBe(true)
715+
expect(Object.values(dictionary).filter(entry => entry.featured_track).length).toBe(1)
716716
})
717717

718718
it('contains valid liquid', () => {

0 commit comments

Comments
 (0)