Skip to content

Commit

Permalink
project clean up and new version commit - v 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Dec 15, 2017
1 parent cfc6385 commit 5a5a3f9
Show file tree
Hide file tree
Showing 111 changed files with 45 additions and 107,940 deletions.
2 changes: 1 addition & 1 deletion Code/License.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* @license :JsStore.js - v1.3.1 - 30/11/2017
* @license :JsStore.js - v1.3.2 - 15/12/2017
* https://github.com/ujjwalguptaofficial/JsStore
* Copyright (c) 2017 @Ujjwal Gupta; Licensed MIT */
2 changes: 1 addition & 1 deletion Code/output/jsstore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Code/output/jsstore.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Code/output/jsstore.min.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Code/test/cases/helper/helper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
describe('Test helper Api', function () {
it('isDbExist without promise', function (done) {
JsStore.isDbExist(DataBase.Name, function (isExist) {
expect(isExist).to.be.an('boolean').to.equal(true);
});
JsStore.isDbExist("Marvel", function (isExist) {
expect(isExist).to.be.an('boolean').to.equal(false);
done();
});
});

it('isDbExist with promise', function (done) {
JsStore.isDbExist(DataBase.Name).then(function (isExist) {
expect(isExist).to.be.an('boolean').to.equal(true);
});
JsStore.isDbExist("Marvel").then(function (isExist) {
expect(isExist).to.be.an('boolean').to.equal(false);
done();
});
});

it('getDbVersion', function (done) {
JsStore.getDbVersion(DataBase.Name, function (version) {
expect(version).to.be.an('number').to.equal(1);
Expand Down
1 change: 0 additions & 1 deletion Code/test/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = function (config) {
},
files: [
'scripts/jquery-3.2.1.min.js',
// 'scripts/jsstore.js',
'../output/jsstore.js',
'scripts/dbhelper.js',
'cases/insert/*.js',
Expand Down
6 changes: 3 additions & 3 deletions Dist/V 1.3/V 1.3.1/jsstore.d.ts → Dist/Beta/jsstore.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license :JsStore.js - v1.3.1 - 30/11/2017
* @license :JsStore.js - v1.3.2 - 15/12/2017
* https://github.com/ujjwalguptaofficial/JsStore
* Copyright (c) 2017 @Ujjwal Gupta; Licensed MIT */
declare module KeyStore {
Expand Down Expand Up @@ -349,7 +349,7 @@ declare module JsStore {
* @param {Function} callback
* @param {Function} errCallBack
*/
var isDbExist: (dbInfo: DbInfo, callback: Function, errCallBack?: Function) => any;
var isDbExist: (dbInfo: DbInfo, callback?: Function, errCallBack?: Function) => any;
/**
* get Db Version
*
Expand Down Expand Up @@ -1004,4 +1004,4 @@ declare module JsStore {
exportJson: (query: ISelect) => any;
}
}
export = JsStore;
export = JsStore;
14 changes: 8 additions & 6 deletions Dist/V 1.3/V 1.3.1/jsstore.js → Dist/Beta/jsstore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Dist/Beta/jsstore.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Dist/Beta/jsstore.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Dist/Beta/jsstore.min.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5a5a3f9

Please sign in to comment.