constants: location -> subdomain

This commit is contained in:
Girish Ramakrishnan
2022-07-14 15:18:17 +05:30
parent 14fc089f05
commit 116cde19f9
8 changed files with 20 additions and 20 deletions

View File

@@ -333,10 +333,10 @@ xdescribe('App API', function () {
it('app install fails - reserved smtp subdomain', function (done) {
superagent.post(SERVER_URL + '/api/v1/apps/install')
.query({ access_token: token })
.send({ manifest: APP_MANIFEST, subdomain: constants.SMTP_LOCATION, accessRestriction: null, domain: DOMAIN_0.domain })
.send({ manifest: APP_MANIFEST, subdomain: constants.SMTP_SUBDOMAIN, accessRestriction: null, domain: DOMAIN_0.domain })
.end(function (err, res) {
expect(res.statusCode).to.equal(400);
expect(res.body.message).to.contain(constants.SMTP_LOCATION + ' is reserved');
expect(res.body.message).to.contain(constants.SMTP_SUBDOMAIN + ' is reserved');
done();
});
});