Skip to content
Prev Previous commit
Next Next commit
feat(exportMessageTypes): Fixed build
  • Loading branch information
BorntraegerMarc authored Feb 4, 2021
commit fca55b7ff5ac5c0d666a7d53fbd8e14384a200d9
3 changes: 3 additions & 0 deletions test/unit/messaging/messaging.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const expect = chai.expect;

import Message = messaging.Message;
import TokenMessage = messaging.TokenMessage;
import TopicMessage = messaging.TopicMessage;
import ConditionMessage = messaging.ConditionMessage;
import MessagingOptions = messaging.MessagingOptions;
import MessagingPayload = messaging.MessagingPayload;
import MessagingDevicesResponse = messaging.MessagingDevicesResponse;
Expand Down Expand Up @@ -825,6 +827,7 @@ describe('Messaging', () => {
).should.eventually.be.rejected.and.have.property('code', 'app/invalid-credential');
});

// This test was added to also verify https://github.com/firebase/firebase-admin-node/issues/1146
it('should be fulfilled when called with different message types', () => {
const messageIds = [
'projects/projec_id/messages/1',
Expand Down