Move field name validation logic out of mongo (#1752)
* Remove transformKey(...) * Move validation logic into Parse Server and out of Mongo Adapter * Fix nits
This commit is contained in:
@@ -191,17 +191,6 @@ describe('untransformObject', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('transformKey', () => {
|
||||
it('throws out _password', (done) => {
|
||||
try {
|
||||
transform.transformKey(dummySchema, '_User', '_password');
|
||||
fail('should have thrown');
|
||||
} catch (e) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('transform schema key changes', () => {
|
||||
|
||||
it('changes new pointer key', (done) => {
|
||||
|
||||
Reference in New Issue
Block a user