Skip to content

Commit 86857cf

Browse files
author
Vikas Agarwal
committed
git#651-Return BA status in the GET billing account endpoint
— fixing unit test
1 parent 6d87d02 commit 86857cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/billingAccounts/get.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import server from '../../app';
88
import testUtil from '../../tests/util';
99
import SalesforceService from '../../services/salesforceService';
1010

11-
chai.should();
11+
const should = chai.should();
1212

1313
// demo data which might be returned by the `SalesforceService.query`
1414
const billingAccountData = {
@@ -169,7 +169,7 @@ describe('Project Billing Accounts list', () => {
169169
} else {
170170
const resJson = res.body;
171171
resJson.tcBillingAccountId.should.be.eql(billingAccountData.tcBillingAccountId);
172-
resJson.markup.should.not.exist;
172+
should.not.exist(resJson.markup);
173173
done();
174174
}
175175
});

0 commit comments

Comments
 (0)