solana-options
Version:
Minting of options contract NFTs on the Solana blockchain
41 lines (40 loc) • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
async function runer_promise_func() {
return 1;
}
async function promise_func() {
return 1;
}
// function cb_func1(x, cb){
// console.log("cb_func1")
// cb_func2(x,()=>{
// cb_func3(x,cb)
// })
// }
// function cb_func2(x, cb){
// console.log("cb_func2")
// cb_func3(x, cb)
// }
function cb_func(x, cb) {
console.log("cb_func3");
return promise_func().then(() => {
console.log("promise");
cb(1, 2, 3);
});
}
describe("example", function () {
this.timeout(20000);
it('this must fail', function (done) {
runer_promise_func().then(x => {
return cb_func(x, (a, b, c) => {
console.log("callback called");
chai_1.assert.fail("it failed");
done();
});
// assert.fail("it failed")
// done()
}).catch(done);
});
});