updated tests to use different claim name
This commit is contained in:
parent
00108aebb8
commit
c748f325b2
1 changed files with 9 additions and 7 deletions
|
@ -84,17 +84,17 @@ describe('end-to-end', function () {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('publish', function () {
|
describe('publish requests', function () {
|
||||||
const publishUrl = '/api/claim-publish';
|
const publishUrl = '/api/claim-publish';
|
||||||
const date = new Date();
|
|
||||||
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
|
|
||||||
const filePath = './test/mock-data/bird.jpeg';
|
const filePath = './test/mock-data/bird.jpeg';
|
||||||
const fileName = 'byrd.jpeg';
|
const fileName = 'byrd.jpeg';
|
||||||
const channelName = testChannel;
|
const channelName = testChannel;
|
||||||
const channelPassword = testChannelPassword;
|
const channelPassword = testChannelPassword;
|
||||||
|
|
||||||
describe(publishUrl, function () {
|
describe('anonymous publishes', function () {
|
||||||
it(`non-channel publishes should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
|
it(`should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
|
||||||
|
const date = new Date();
|
||||||
|
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
|
||||||
chai.request(host)
|
chai.request(host)
|
||||||
.post(publishUrl)
|
.post(publishUrl)
|
||||||
.type('form')
|
.type('form')
|
||||||
|
@ -108,8 +108,10 @@ describe('end-to-end', function () {
|
||||||
}).timeout(publishTimeout);
|
}).timeout(publishTimeout);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe(publishUrl, function () {
|
describe('in-channel publishes', function () {
|
||||||
it(`channel publishes should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
|
it(`should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
|
||||||
|
const date = new Date();
|
||||||
|
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
|
||||||
chai.request(host)
|
chai.request(host)
|
||||||
.post(publishUrl)
|
.post(publishUrl)
|
||||||
.type('form')
|
.type('form')
|
||||||
|
|
Loading…
Reference in a new issue