What should a test ask? Chai provides the assertion layer: questions whose expected answers are true. Its job is deliberately narrow—express whether a value or function result matches an expectation. section 13.2
Testing a component
Inside a Web Component Tester suite, assert.equal(slider.value, 50) checks the initial value. Further assertions can verify JavaScript assignment, attribute updates, rendering, and boundary behavior such as values above 100 or below 0.
