WIP Add OneSignal Adapter

This commit is contained in:
George Deglin
2016-02-12 18:32:39 -08:00
parent 9248f9af6d
commit a1b24da3e7
4 changed files with 210 additions and 25 deletions

View File

@@ -0,0 +1 @@
//todo

View File

@@ -133,26 +133,6 @@ describe('Installations', () => {
});
});
it('fails for android with device token', (done) => {
var installId = '12345678-abcd-abcd-abcd-123456789abc';
var t = '11433856eed2f1285fb3aa11136718c1198ed5647875096952c66bf8cb976306';
var device = 'android';
var input = {
'installationId': installId,
'deviceType': device,
'deviceToken': t,
'channels': ['foo', 'bar']
};
rest.create(config, auth.nobody(config), '_Installation', input)
.then(() => {
fail('Should not have been able to create an Installation.');
done();
}).catch((error) => {
expect(error.code).toEqual(114);
done();
});
});
it('fails for android with missing type', (done) => {
var installId = '12345678-abcd-abcd-abcd-123456789abc';
var input = {