From 155a747a92cac408ee9f7e77909436fa85c2bfa9 Mon Sep 17 00:00:00 2001 From: Ben Lau Date: Thu, 29 Mar 2018 08:21:30 +0800 Subject: [PATCH] Fix a broken test case --- tests/unittests/tst_promisejs_minimal.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unittests/tst_promisejs_minimal.qml b/tests/unittests/tst_promisejs_minimal.qml index 292fe96..010cd26 100644 --- a/tests/unittests/tst_promisejs_minimal.qml +++ b/tests/unittests/tst_promisejs_minimal.qml @@ -16,7 +16,11 @@ TestCase { var callbackResult = {} var promise = new Q.Promise(function(resolve, reject) { - resolve("ready") ; + resolve("ready"); + }); + + promise.then(function(result) { + callbackResult.result = result; }); tick();