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
If I call
jobs.createJob({...}).save(function (error) { if (error) { // Unable to save job } else { // Job saved! } });
The error in the callback is set to the job. It should be undefined.
Ideally, we should be able to test both cases (job saved successfully / job save failed), but that's a new feature.
The text was updated successfully, but these errors were encountered:
Mock a successful job save by calling the callback without arguments.…
b6c79fc
… Fixes issue raweng#2.
No branches or pull requests
If I call
jobs.createJob({...}).save(function (error) {
if (error) {
// Unable to save job
} else {
// Job saved!
}
});
The error in the callback is set to the job. It should be undefined.
Ideally, we should be able to test both cases (job saved successfully / job save failed), but that's a new feature.
The text was updated successfully, but these errors were encountered: