Loading...
Loading...
Chai assertion library for JavaScript. Use for JS assertions.
npx skill4agent add g1joshi/agent-skills chaiassertexpectshouldimport { expect } from "chai";
const foo = "bar";
const beverages = { tea: ["chai", "matcha", "oolong"] };
expect(foo).to.be.a("string");
expect(foo).to.equal("bar");
expect(foo).to.have.lengthOf(3);
expect(beverages).to.have.property("tea").with.lengthOf(3);assert.equal(foo, 'bar')expect(foo).to.be.equal('bar')foo.should.be.equal('bar')chai-httpchai-as-promisedreturn expect(promise).to.eventually.equal(2)to.be.trueto.equal(true)