const assert = require('@ciscospark/test-helper-chai'); // a simple class definition class MyClass { constructor(name) { this.name = name; } } const obj = new MyClass('Alice'); // test that obj is an instance of MyClass assert.instanceOf(obj, MyClass);
const assert = require('@ciscospark/test-helper-chai'); describe('simple math operations', () => { it('should add two numbers', () => { const result = 1 + 2; assert.equal(result, 3); }); it('should subtract two numbers', () => { const result = 5 - 2; assert.equal(result, 3); }); });
npm view @ciscospark/test-helper-chaiThis will display information about the package including its description, version, author, and dependencies.