提交 856025bc 编写于 作者: X xdmal

Signed-off-by: xdmal <1114560882@qq.com>

 On branch master
 Your branch is up to date with 'origin/master'.
上级 37c09f9a
......@@ -6264,7 +6264,7 @@ describe('TypesTest', function() {
it('testIsPromise004', 0, function() {
var proc = new util.Types();
var err = Error(33);
var result = proc.isPromise(Promise.reject(err ));
var result = proc.isPromise(Promise.reject(err));
expect(result).assertEqual(true);
})
......@@ -6276,7 +6276,8 @@ describe('TypesTest', function() {
*/
it('testIsPromise005', 0, function() {
var proc = new util.Types();
var result = proc.isPromise(Promise.reject(23));
var err = Error(23);
var result = proc.isPromise(Promise.reject(err));
expect(result).assertEqual(true);
})
......
......@@ -373,11 +373,11 @@ describe('TextEncoderTest', function () {
async function promiseFn() {
var err = Error('value');
return Promise.reject(err);
expect(err.message).strictEqual('value');
}
var cb = util.callbackWrapper(promiseFn);
cb((err, ret) => {
expect(err).strictEqual('value');
expect(err.message).strictEqual('value');
expect(ret).strictEqual(undefined);
})
})
......@@ -6263,7 +6263,8 @@ describe('TypesTest', function() {
*/
it('testIsPromise004', 0, function() {
var proc = new util.Types();
var result = proc.isPromise(Promise.reject(33));
var err = Error(33);
var result = proc.isPromise(Promise.reject(err ));
expect(result).assertEqual(true);
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册