Skip to content

Commit

Permalink
Remove two tests that no longer pass (and shouldnt!)
Browse files Browse the repository at this point in the history
They used the registration_ids key, which we will no longer support.
They passed because state was NOT reset before every test (fixed this in earlier commit)
  • Loading branch information
hypesystem committed Jun 8, 2016
1 parent a1343eb commit 7e55699
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/unit/senderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,30 +208,6 @@ describe('UNIT Sender', function () {
}, 10);
});

it('should set the registration_ids to reg tokens explicitly passed in', function (done) {
var sender = new Sender('myKey');
var m = { data: {} };
var regTokens = ["registration token 1", "registration token 2"];
sender.send(m, { registrationIds: regTokens }, { retries: 0 }, function () {});
setTimeout(function() {
var body = args.options.json;
expect(body.registration_ids).to.deep.equal(regTokens);
done();
}, 10);
});

it('should set the registration_ids to reg tokens explicitly passed in', function (done) {
var sender = new Sender('myKey');
var m = { data: {} };
var regTokens = ["registration token 1", "registration token 2"];
sender.send(m, { registrationTokens: regTokens }, { retries: 0 }, function () {});
setTimeout(function() {
var body = args.options.json;
expect(body.registration_ids).to.deep.equal(regTokens);
done();
}, 10);
});

it('should set the to field if a single reg (or other) token is passed in', function(done) {
var sender = new Sender('myKey');
var m = { data: {} };
Expand Down

0 comments on commit 7e55699

Please sign in to comment.