Report validation errors with correct error code (#2299)

This commit is contained in:
Florent Vilmart
2016-07-19 02:03:43 -04:00
committed by Drew
parent 40c4fcdebf
commit 033bc317e6
2 changed files with 2 additions and 2 deletions

View File

@@ -1017,7 +1017,7 @@ describe('miscellaneous', function() {
fail('Validation should not have succeeded');
done();
}, (e) => {
expect(e.code).toEqual(141);
expect(e.code).toEqual(142);
expect(e.message).toEqual('Validation failed.');
done();
});