@@ -464,6 +464,7 @@ function testDataStoreClass() {
464464 }
465465
466466 promiseObject = dataStore . save ( item ) ;
467+ promiseObject = dataStore . save ( { age : new Backendless . Expression ( 'age + 1' ) } ) ;
467468 promiseObject = dataStore . save ( item , true ) ;
468469 promiseObject = dataStore . save ( item , false ) ;
469470 promisePerson = dataStore . save < Person > ( person ) ;
@@ -579,6 +580,7 @@ function testPersistence() {
579580
580581 promiseObject = Backendless . Data . save ( 'model' , { } ) ;
581582 promiseObject = Backendless . Data . save ( dataStore , { } ) ;
583+ promiseObject = Backendless . Data . save ( dataStore , { age : new Backendless . Expression ( 'age + 1' ) } ) ;
582584
583585 promiseObject = Backendless . Data . deepSave ( 'model' , { } ) ;
584586 promiseObject = Backendless . Data . deepSave ( dataStore , { } ) ;
@@ -689,6 +691,7 @@ function testData() {
689691
690692 promiseObject = Backendless . Data . save ( 'model' , { } ) ;
691693 promiseObject = Backendless . Data . save ( dataStore , { } ) ;
694+ promiseObject = Backendless . Data . save ( dataStore , { age : new Backendless . Expression ( 'age + 1' ) } ) ;
692695
693696 promiseObject = Backendless . Data . deepSave ( 'model' , { } ) ;
694697 promiseObject = Backendless . Data . deepSave ( dataStore , { } ) ;
@@ -1221,6 +1224,7 @@ function testBulkOperations() {
12211224 resultPromiseListOfString = dataStore . bulkUpsert ( [ { } , { } , { } ] ) ;
12221225
12231226 resultPromiseString = dataStore . bulkUpdate ( 'where clause string' , { foo : 'bar' } ) ;
1227+ resultPromiseString = dataStore . bulkUpdate ( 'where clause string' , { age : new Backendless . Expression ( 'age + 1' ) } ) ;
12241228
12251229 resultPromiseString = dataStore . bulkDelete ( 'where clause string' ) ;
12261230 resultPromiseString = dataStore . bulkDelete ( [ 'objectId1' , { objectId : 'objectId1' } , 123 ] ) ;
@@ -2245,12 +2249,14 @@ async function testBaseTransactions() {
22452249 opResult = uow . update ( personInst ) ;
22462250 opResult = uow . update ( personClassName , personObj ) ;
22472251 opResult = uow . update ( opResult , personObj ) ;
2252+ opResult = uow . update ( opResult , { age : new Backendless . Expression ( 'age + 1' ) } ) ;
22482253 opResult = uow . update ( opResult , propertyName , propertyValueObj ) ;
22492254 opResult = uow . update ( opResultValueReference , changesObj ) ;
22502255 opResult = uow . update ( opResultValueReference , propertyName , opResultValueReference ) ;
22512256 opResult = uow . update ( opResultValueReference , propertyName , 123 ) ;
22522257 opResult = uow . update ( opResultValueReference , propertyName , 'str' ) ;
22532258 opResult = uow . update ( opResultValueReference , propertyName , true ) ;
2259+ opResult = uow . update ( opResultValueReference , propertyName , new Backendless . Expression ( 'age + 1' ) ) ;
22542260 ///
22552261 opResult = uow . delete ( opResult ) ;
22562262 opResult = uow . delete ( opResultValueReference ) ;
@@ -2268,6 +2274,7 @@ async function testBaseTransactions() {
22682274 opResult = uow . bulkUpdate ( personClassName , [ personObj , personObj , personObj ] , changesObj ) ;
22692275 opResult = uow . bulkUpdate ( personClassName , [ personInst , personInst , personInst ] , changesObj ) ;
22702276 opResult = uow . bulkUpdate ( opResult , changesObj ) ;
2277+ opResult = uow . bulkUpdate ( opResult , { age : new Backendless . Expression ( 'age + 1' ) } ) ;
22712278 ///
22722279 opResult = uow . bulkDelete ( personClassName , [ changesObj , changesObj , changesObj ] ) ;
22732280 opResult = uow . bulkDelete ( [ personInst , personInst , personInst ] ) ;
0 commit comments