-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(smssync): add http api spec definition
- Loading branch information
Showing
3 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'use strict'; | ||
|
||
const { clear: clearHttp, mount } = require('@lykmapipo/express-test-helpers'); | ||
const { clear: clearDatabase } = require('@lykmapipo/mongoose-test-helpers'); | ||
const { smssyncRouter } = require('../..'); | ||
|
||
describe('SMSSync Http API', () => { | ||
before(() => clearHttp()); | ||
before(done => clearDatabase(done)); | ||
before(() => { | ||
mount(smssyncRouter); | ||
}); | ||
|
||
it('should receive sync sms from a device', done => { | ||
done(); | ||
}); | ||
|
||
it('should receive queued sms to be sent by a device', done => { | ||
done(); | ||
}); | ||
|
||
it('should receive delivery reports sent by a device', done => { | ||
done(); | ||
}); | ||
|
||
it('should return sms to be sent by device', done => { | ||
done(); | ||
}); | ||
|
||
it('should return sms waiting delivery report to a device', done => { | ||
done(); | ||
}); | ||
|
||
it('should reject request with no secret key sent by device', done => { | ||
done(); | ||
}); | ||
|
||
after(() => clearHttp()); | ||
after(done => clearDatabase(done)); | ||
}); |