Fixup the superagent-sync usage

This commit is contained in:
Johannes Zellner 2015-10-13 17:29:55 +02:00
parent 45a18edcb9
commit 604d14e4a1
3 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ describe('Application flow test', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');
@ -94,7 +94,7 @@ describe('Application flow test', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');
@ -111,7 +111,7 @@ describe('Application flow test', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');

View File

@ -77,7 +77,7 @@ describe('Cloudron backup testing', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');
@ -118,7 +118,7 @@ describe('Cloudron backup testing', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');

View File

@ -92,7 +92,7 @@ describe('Cloudron update testing', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');
@ -113,7 +113,7 @@ describe('Cloudron update testing', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');
@ -136,7 +136,7 @@ describe('Cloudron update testing', function () {
});
it('can check the addons', function () {
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
assert.strictEqual(res.statusCode, 200);
assert.strictEqual(res.body.mysql, 'OK');
assert.strictEqual(res.body.postgresql, 'OK');