Skip to content

Commit

Permalink
fix: update tests for starRating
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Oct 9, 2023
1 parent a12603d commit f34a259
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/control/control_plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ describe('Test Custom Control', () => {
expect(typeof controlInstance).toBe('object')
expect(controlInstance.constructor.name).toBe('controlStarRating')

const element = controlInstance.build()
expect(element.constructor.name).toBe('HTMLSpanElement')
const controlBuild = controlInstance.build()
const element = controlBuild[0]
expect(element.constructor.name).toBe('HTMLInputElement')
expect(element.id).toBe('star-1492424082853')
expect(element.type).toBe('hidden')
})
})

0 comments on commit f34a259

Please sign in to comment.