const assert = require('@ciscospark/test-helper-chai').assert; const myPromise = Promise.resolve('foo'); describe('Promise test', () => { it('should resolve with the correct value', () => { return assert.isFulfilled(myPromise) .then((result) => { assert.equal(result, 'foo'); }); }); it('should reject with an error', () => { const myRejectedPromise = Promise.reject(new Error('bar')); return assert.isRejected(myRejectedPromise) .then((error) => { assert.equal(error.message, 'bar'); }); }); });In this example, we perform two tests on Promises. The first test checks that the `myPromise` Promise resolves with the value 'foo'. The second test checks that a rejected Promise (`myRejectedPromise`) returns the expected error message. The package library for `@ciscospark/test-helper-chai` is Chai.