diff options
Diffstat (limited to 'installed-tests/js/testGDBus.js')
-rw-r--r-- | installed-tests/js/testGDBus.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/installed-tests/js/testGDBus.js b/installed-tests/js/testGDBus.js index 78907e48..88c5831b 100644 --- a/installed-tests/js/testGDBus.js +++ b/installed-tests/js/testGDBus.js @@ -407,6 +407,19 @@ describe('Exported DBus object', function () { loop.run(); }); + async function testAsync(value) { + let result = await proxy.nonJsonFrobateStuffAsync(value); + return result; + } + + it('can call a remote method using AWAIT', function () { + testAsync(1).then(result => { + expect(result[0]).toEqual('Oops'); + loop.quit(); + }); + loop.run(); + }); + it('can call a remote method with no in parameter', function () { proxy.noInParameterRemote(([result], excp) => { expect(result).toEqual('Yes!'); |