constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name TEXT NOT NULL, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";
...
...
@@ -22,6 +23,7 @@ const STORE_CONFIG = {
name:"Delete.db",
}
varrdbStore=undefined;
varcontext=undefined;
describe('rdbStoreDeleteTest',function(){
beforeAll(function(){
...
...
@@ -30,7 +32,8 @@ describe('rdbStoreDeleteTest', function () {
constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name TEXT NOT NULL, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";
constCREATE_TABLE_TEST="CREATE TABLE IF NOT EXISTS test ("+"id INTEGER PRIMARY KEY AUTOINCREMENT, "+"name TEXT NOT NULL, "+"age INTEGER, "+"salary REAL, "+"blobType BLOB)";
...
...
@@ -22,10 +23,11 @@ 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(){
...
...
@@ -49,7 +51,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)";