import {assert} from '@ciscospark/test-helper-chai'; describe('My Cisco Spark App', () => { it('should have a welcome message', () => { let welcomeMessage = 'Welcome to Cisco Spark!'; assert.property(actual, 'welcomeMessage'); assert.typeOf(actual, 'string'); assert.equal(actual, welcomeMessage); }); });
import {assert} from '@ciscospark/test-helper-chai'; describe('My Cisco Spark App', () => { it('should have a working button', () => { let button = document.querySelector('.button'); assert.property(actual, 'onclick'); assert.isFunction(actual); button.click(); assert.isTrue(button.clicked); }); });In this example, we are using the `assert.property` assertion property to check that the `actual` object has an `onclick` property. We are also using the `assert.isFunction` assertion property to ensure that the `actual` object is a function. Finally, we are testing that clicking the button sets its `clicked` property to true using the `assert.isTrue` assertion property. Overall, the `@ciscospark/test-helper-chai` library is a useful package for testing Cisco Spark applications using Chai assertions.