Repository: usergrid Updated Branches: refs/heads/master 60d60fed1 -> 91d2a9123
Add back notification integration tests. Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/91d2a912 Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/91d2a912 Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/91d2a912 Branch: refs/heads/master Commit: 91d2a9123109cc169a92e93dc4c9912508bc7af3 Parents: 60d60fe Author: Michael Russo <[email protected]> Authored: Tue Feb 16 10:40:01 2016 -0800 Committer: Michael Russo <[email protected]> Committed: Tue Feb 16 10:40:01 2016 -0800 ---------------------------------------------------------------------- tests/integration/test/main.js | 6 +++--- tests/integration/test/teardown.js | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/91d2a912/tests/integration/test/main.js ---------------------------------------------------------------------- diff --git a/tests/integration/test/main.js b/tests/integration/test/main.js index b40bf4a..4d8341c 100644 --- a/tests/integration/test/main.js +++ b/tests/integration/test/main.js @@ -57,9 +57,9 @@ describe("** Usergrid REST Integration Tests **", function() { describe("groups", function() { require("./groups/groups.js").test(); }); - //describe("notifications", function() { - // require("./notifications/notifications.js").test(); - //}); + describe("notifications", function() { + require("./notifications/notifications.js").test(); + }); after(function(done) { this.timeout(180000); console.log(" teardown"); http://git-wip-us.apache.org/repos/asf/usergrid/blob/91d2a912/tests/integration/test/teardown.js ---------------------------------------------------------------------- diff --git a/tests/integration/test/teardown.js b/tests/integration/test/teardown.js index d221a1b..24a9ddd 100644 --- a/tests/integration/test/teardown.js +++ b/tests/integration/test/teardown.js @@ -72,14 +72,14 @@ module.exports = { cb(err); }) }, - //function(cb) { - // entities.deleteAll('notifications', function(err, body) { - // should(err).be.null; - // body.entities.should.be.an.instanceOf(Array).and.have.lengthOf(0); - // body.count.should.equal(0); - // cb(err); - // }) - //}, + function(cb) { + entities.deleteAll('notifications', function(err, body) { + should(err).be.null; + body.entities.should.be.an.instanceOf(Array).and.have.lengthOf(0); + body.count.should.equal(0); + cb(err); + }) + }, function(cb) { entities.deleteAll('receipts', function(err, body) { should(err).be.null;
