Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Address review feedback from andrerod
Browse files Browse the repository at this point in the history
  • Loading branch information
toddreifsteck committed Aug 5, 2014
1 parent 4d8aeab commit 9ab495e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/services/serviceBus/apnsservice-registrations-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ describe('APNS notifications registrations', function () {

executeSpy.args[0][1].should.include('<BodyTemplate><![CDATA[{"aps":{"alert":"$(alertMessage1)"}}]]></BodyTemplate>');

// Current version of sinon does not appear to support multiple calls on same spy.
sandbox.restore();

done();
});
});
Expand All @@ -259,7 +262,6 @@ describe('APNS notifications registrations', function () {
});

it('should work', function (done) {
sandbox.restore();
executeSpy = sandbox.spy(notificationHubService, '_executeRequest');
notificationHubService.apns.updateTemplateRegistration(
registrationId,
Expand All @@ -278,7 +280,6 @@ describe('APNS notifications registrations', function () {
});

it('should work when payload member exists', function (done) {
sandbox.restore();
executeSpy = sandbox.spy(notificationHubService, '_executeRequest');
notificationHubService.apns.updateTemplateRegistration(
registrationId,
Expand All @@ -301,7 +302,6 @@ describe('APNS notifications registrations', function () {
});

it('should work when aps exists without modifying payload as extra data', function (done) {
sandbox.restore();
executeSpy = sandbox.spy(notificationHubService, '_executeRequest');
notificationHubService.apns.updateTemplateRegistration(
registrationId,
Expand Down

0 comments on commit 9ab495e

Please sign in to comment.