We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got this message: 'Expected', 'owner', 'to equal', Object{id: 1, name: 'Membership Owner'}, 'in', Object{owner: Object{id: 1, name: 'Membership Owner'}}, 'but it was', Object{id: 1, name: 'Membership Owner'}
'Expected', 'owner', 'to equal', Object{id: 1, name: 'Membership Owner'}, 'in', Object{owner: Object{id: 1, name: 'Membership Owner'}}, 'but it was', Object{id: 1, name: 'Membership Owner'}
That looks like that should work. Not sure what the deal is.
was doing...
var postParams = {owner:{ id: 1, name:"Membership Owner"}} chargeResource.expect('POST').with(postParams);
chargeResource was
var chargeResource = Facade.resource({ name: 'charge', url: '/api/provider/charges', createDefault: function(postData) { var defaultCharge = Replicator.build('charge'); return _.extend({}, defaultCharge, postData); } });
all the controller was doing was
function createCharge(charge, payment) { if (!_.isEmpty(payment)) { charge.payment = payment; } chargeService.create(charge) .then(function(){ $window.analytics.track('Charge Created', {patientId: vm.patient.id});
and was able to fix by instead doing... $httpBackend.expect('POST', '/api/provider/charges', postParams);
$httpBackend.expect('POST', '/api/provider/charges', postParams);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Got this message:
'Expected', 'owner', 'to equal', Object{id: 1, name: 'Membership Owner'}, 'in', Object{owner: Object{id: 1, name: 'Membership Owner'}}, 'but it was', Object{id: 1, name: 'Membership Owner'}
That looks like that should work. Not sure what the deal is.
was doing...
chargeResource was
all the controller was doing was
and was able to fix by instead doing...
$httpBackend.expect('POST', '/api/provider/charges', postParams);
The text was updated successfully, but these errors were encountered: