summaryrefslogtreecommitdiff
path: root/js/test/Ice/properties/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/properties/Client.js')
-rw-r--r--js/test/Ice/properties/Client.js21
1 files changed, 5 insertions, 16 deletions
diff --git a/js/test/Ice/properties/Client.js b/js/test/Ice/properties/Client.js
index 72e5be40ac4..86adc5287eb 100644
--- a/js/test/Ice/properties/Client.js
+++ b/js/test/Ice/properties/Client.js
@@ -22,8 +22,7 @@
var run = function(out)
{
- return Promise.try(
- function()
+ return Promise.try(() =>
{
out.write("testing configuration file escapes... ");
var props =
@@ -83,30 +82,20 @@
// Use text data type to avoid problems interpreting the data.
//
dataType: "text"
- }).done(
- function(data)
+ }).done(data =>
{
properties.parse(data);
for(var key in props)
{
test(props[key] == properties.getProperty(key));
}
- p.succeed();
- }
- ).fail(
- function()
- {
- p.fail();
- });
+ p.resolve();
+ }).fail(p.reject);
return p;
}
}
}
- ).then(
- function()
- {
- out.writeLine("ok");
- });
+ ).then(() => out.writeLine("ok"));
};
exports.__test__ = run;
}