constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name TEXT NOT NULL, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";
...
...
@@ -23,11 +22,9 @@ const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIM
constSTORE_CONFIG={
name:"rdbstore.db",
}
varcontext=undefined;
describe('rdbStoreTest',function(){
beforeAll(asyncfunction(){
console.info(TAG+'beforeAll')
context=awaitability_featureAbility.getContext();
})
beforeEach(function(){
...
...
@@ -51,7 +48,7 @@ describe('rdbStoreTest', function () {
constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name NOT NULL, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";
constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name TEXT UNIQUE, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";