const chaiAsPromised = require('chai-as-promised');
const chai = require('chai');
const expect = chai.expect;
chai.use(chaiAsPromised);
describe('[sample unit]', function() {
it('should pass functionToTest with true input', function() {
expect(Promise.resolve({ foo: "bar" })).to.eventually.have.property("meh");
});
});
Dieser Test besteht? Ich verwende "Chai": "3.5.0", "Chai-as-Versprochen": "5.2.0",Chai-As-Promise geht auch wenn es falsch ist