Skip to content

Commit

Permalink
Remove survey task dynamic thumbnail display per number of choices
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbouslog committed Jan 8, 2025
1 parent fd585a1 commit 3791e3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import howManyColumns from './howManyColumns'

export default function whatSizeThumbnail({ length }) {
if (length > 30) {
return 'none'
}

switch (howManyColumns({ length })) {
case 1:
return 'large'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ describe('Function > whatSizeThumbnail', function () {
expect(whatSizeThumbnail).to.be.a('function')
})

it('should return \'none\' if the length of the array is greater than 30', function () {
expect(whatSizeThumbnail(Array(31))).to.equal('none')
})

it('should return \'small\' if there are 3 columns', function () {
expect(whatSizeThumbnail(Array(21))).to.equal('small')
})
Expand Down

0 comments on commit 3791e3c

Please sign in to comment.