Skip to content

Commit 7e55699

Browse files
committed
Remove two tests that no longer pass (and shouldnt!)
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)
1 parent a1343eb commit 7e55699

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

test/unit/senderSpec.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -208,30 +208,6 @@ describe('UNIT Sender', function () {
208208
}, 10);
209209
});
210210

211-
it('should set the registration_ids to reg tokens explicitly passed in', function (done) {
212-
var sender = new Sender('myKey');
213-
var m = { data: {} };
214-
var regTokens = ["registration token 1", "registration token 2"];
215-
sender.send(m, { registrationIds: regTokens }, { retries: 0 }, function () {});
216-
setTimeout(function() {
217-
var body = args.options.json;
218-
expect(body.registration_ids).to.deep.equal(regTokens);
219-
done();
220-
}, 10);
221-
});
222-
223-
it('should set the registration_ids to reg tokens explicitly passed in', function (done) {
224-
var sender = new Sender('myKey');
225-
var m = { data: {} };
226-
var regTokens = ["registration token 1", "registration token 2"];
227-
sender.send(m, { registrationTokens: regTokens }, { retries: 0 }, function () {});
228-
setTimeout(function() {
229-
var body = args.options.json;
230-
expect(body.registration_ids).to.deep.equal(regTokens);
231-
done();
232-
}, 10);
233-
});
234-
235211
it('should set the to field if a single reg (or other) token is passed in', function(done) {
236212
var sender = new Sender('myKey');
237213
var m = { data: {} };

0 commit comments

Comments
 (0)