change error msg

This commit is contained in:
jim1_lin
2016-03-02 16:50:00 +08:00
parent 430dd7944e
commit 36aa5935b1
2 changed files with 6 additions and 11 deletions

View File

@@ -350,11 +350,7 @@ describe('Parse.Object testing', () => {
var next = function(index) {
if (index < tests.length) {
tests[index].save().then(fail, error => {
if (types[index] === 'Pointer') {
expect(error.code).toEqual(Parse.Error.INVALID_POINTER);
} else {
expect(error.code).toEqual(Parse.Error.INCORRECT_TYPE);
}
expect(error.code).toEqual(Parse.Error.INCORRECT_TYPE);
next(index + 1);
});
} else {