const assert = require('@ciscospark/test-helper-chai').assert; describe('myPlugin', () => { it('should return false when given a false value', () => { const result = myPlugin.someFunction(false); assert.isFalse(result); }); });
const assert = require('@ciscospark/test-helper-chai').assert; describe('myPlugin', () => { it('should not return false when given a truthy value', () => { const result = myPlugin.someFunction(3); assert.isFalse(result); }); });This example tests whether the `someFunction` method in the `myPlugin` object returns a truthy value when given an input that should not result in false. By looking at the package name, we can tell that this library is specifically designed for testing Cisco Spark applications.