You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/06/23 07:06:29 UTC

[2/2] cordova-plugin-media git commit: Update spec.24 expectations to be more descriptive

Update spec.24 expectations to be more descriptive


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/17fc9f3d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/17fc9f3d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/17fc9f3d

Branch: refs/heads/master
Commit: 17fc9f3dd66970f32f9f474ac00de93b5b060aa1
Parents: cd185ea
Author: Vladimir Kotikov <ko...@gmail.com>
Authored: Wed Jun 22 17:35:49 2016 +0300
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Thu Jun 23 10:05:16 2016 +0300

----------------------------------------------------------------------
 tests/tests.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/17fc9f3d/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 0533483..cbf0dcc 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -396,7 +396,8 @@ exports.defineAutoTests = function () {
                             media1.getCurrentPosition(function (position) {
                                 //in four seconds expect position to be between 4 & 10. Here, the values are chosen to give
                                 //a large enough buffer range for the position to fall in and are not based on any calculation.
-                                expect(position >= 4 && position < 10).toBeTruthy();
+                                expect(position).not.toBeLessThan(4);
+                                expect(position).toBeLessThan(10);
                                 media1.stop();
                                 media1.release();
                                 done();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org