좌석 내에서 추금을 약속 한 채로 사용했습니다
-
21-12-2019 - |
문제
다음 이 예제 I 예상 구문과 함께 작동하는 테스트를 얻을 수는 있지만 필수 구문과 함께 사용할 수 있습니다.
var expect = chai.expect;
describe('expect syntax', function() {
it('should work', function() {
...
expect(promise).to.eventually.eql('something');
});
});
.
chai.should();
describe('should syntax', function() {
it('should work', function() {
...
(true).should.be.true;
promise.should.eventually.eql('something');
});
});
.
다른 팁
이것은 우리를 위해 작동합니다 ..
var element = $('#mainDiv');
expect(element.isEnabled()).to.eventually.to.equal(true, "Expect Button to be enabled.");
.
"약속"이 실제로 약속이고 EQL 작업이 항상 작동합니까? 나는 항상 동등하게 사용했습니다.
사이드 메모에서 우리는 Chai & Chai-As-Prodised와 함께 오이를 사용하고 있지만 약속에 따라 중요하지 않아야합니다.
제휴하지 않습니다 StackOverflow