Node 6 and NPM 4 (#8081)

* upgrade node to version 6

* upgrade npm to v4

* update shrinkwrap

* use npm 4 in travis

* use mongoose 4.6.4

* update shrinkwrap

* fix async test and upgrade mongoose

* fix amazon test

* remove debugging code

* working tests with separate server

* update coupon code

* mupdate mongoose

* nvm: relax node version in .nvmrc
This commit is contained in:
Matteo Pagliazzi
2016-12-12 21:51:53 +01:00
committed by GitHub
parent 66d402c985
commit 5dbaf39aba
8 changed files with 194 additions and 162 deletions

View File

@@ -10,13 +10,11 @@ describe('payments - amazon - #createOrderReferenceId', () => {
user = await generateUser();
});
it('verifies billingAgreementId', async (done) => {
try {
await user.post(endpoint);
} catch (e) {
// Parameter AWSAccessKeyId cannot be empty.
expect(e.error).to.eql('BadRequest');
done();
}
it('verifies billingAgreementId', async () => {
await expect(user.post(endpoint)).to.eventually.be.rejected.and.eql({
code: 400,
error: 'BadRequest',
message: 'Missing req.body.billingAgreementId',
});
});
});