You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test fails for:
it('with id ' + id, function() {
expect(dataservice.getCustomer).to.have.been.calledWith(id);
});
getCustomer() doesn't appear to get the .withArgs(id)
should have called dataservice.getCustomer
1 time
‣
with id 1017109
‣
AssertionError: expected getCustomer to have been called with arguments 1017109
getCustomer(undefined) => {
$$state: {
pending: undefined,
processScheduled: false,
status: 1,
value: {
city: "Albany",
firstName: "Black",
id: 1017109,
lastName: "Widow",
state: "NY",
thumbnail: "colleen_papa.jpg",
zip: "12205"
}
}
}
at Context. (src/client/app/customers/customer-detail.controller.spec.js:38:66)
expect(dataservice.getCustomer).to.have.been.calledWith(id);
Test fails for:
it('with id ' + id, function() {
expect(dataservice.getCustomer).to.have.been.calledWith(id);
});
getCustomer() doesn't appear to get the .withArgs(id)
should have called dataservice.getCustomer
1 time
‣
with id 1017109
‣
AssertionError: expected getCustomer to have been called with arguments 1017109
getCustomer(undefined) => {
$$state: {
pending: undefined,
processScheduled: false,
status: 1,
value: {
city: "Albany",
firstName: "Black",
id: 1017109,
lastName: "Widow",
state: "NY",
thumbnail: "colleen_papa.jpg",
zip: "12205"
}
}
}
at Context. (src/client/app/customers/customer-detail.controller.spec.js:38:66)
expect(dataservice.getCustomer).to.have.been.calledWith(id);
[...]
beforeEach(function() {
sinon.stub(dataservice, 'getCustomer')
.returns($q.when(mockData.blackWidow))
.withArgs(id);
[...]
describe('after activate', function() {
[...]
it('with id ' + id, function() {
expect(dataservice.getCustomer).to.have.been.calledWith(id);
});
[...]
The text was updated successfully, but these errors were encountered: