@keplr-wallet/common
Advanced tools
Comparing version 0.8.5 to 0.8.6-0.9.0-alpha.0.0
export * from "./kv-store"; | ||
export * from "./denom"; | ||
export * from "./mobx"; | ||
export * from "./utils"; |
@@ -16,2 +16,3 @@ "use strict"; | ||
__exportStar(require("./mobx"), exports); | ||
__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
import "mocha"; | ||
export {}; |
@@ -11,11 +11,6 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const assert_1 = __importDefault(require("assert")); | ||
require("mocha"); | ||
const memory_1 = require("./memory"); | ||
describe("Test kvstore", () => { | ||
it("kvstore should not conflict", () => __awaiter(void 0, void 0, void 0, function* () { | ||
test("kvstore should not conflict", () => __awaiter(void 0, void 0, void 0, function* () { | ||
const test1KVStore = new memory_1.MemoryKVStore("test1"); | ||
@@ -26,10 +21,10 @@ const test2KVStore = new memory_1.MemoryKVStore("test2"); | ||
let valueFromTest2 = yield test2KVStore.get(key); | ||
assert_1.default.strictEqual(valueFromTest2, undefined); | ||
expect(valueFromTest2).toBe(undefined); | ||
yield test2KVStore.set(key, "test2"); | ||
const valueFromTest1 = yield test1KVStore.get(key); | ||
valueFromTest2 = yield test2KVStore.get(key); | ||
assert_1.default.strictEqual(valueFromTest1, "test1"); | ||
assert_1.default.strictEqual(valueFromTest2, "test2"); | ||
expect(valueFromTest1).toBe("test1"); | ||
expect(valueFromTest2).toBe("test2"); | ||
})); | ||
}); | ||
//# sourceMappingURL=base.spec.js.map |
{ | ||
"name": "@keplr-wallet/common", | ||
"version": "0.8.5", | ||
"version": "0.8.6-0.9.0-alpha.0.0", | ||
"main": "build/index.js", | ||
@@ -15,13 +15,10 @@ "author": "chainapsis", | ||
"dev": "tsc -w", | ||
"test": "mocha --timeout 30000 -r ts-node/register 'src/**/*.spec.ts'", | ||
"test": "jest --passWithNoTests", | ||
"lint-test": "eslint \"src/**/*\" && prettier --check \"src/**/*\"", | ||
"lint-fix": "eslint --fix \"src/**/*\" && prettier --write \"src/**/*\"" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^8.2.1" | ||
}, | ||
"dependencies": { | ||
"delay": "^4.4.0" | ||
}, | ||
"gitHead": "19f924f8784f3afb47444139436cb1aae4e796ed" | ||
"gitHead": "c4a99f5dbc5a99de2e7b79fc64314feae46159e6" | ||
} |
export * from "./kv-store"; | ||
export * from "./denom"; | ||
export * from "./mobx"; | ||
export * from "./utils"; |
@@ -1,7 +0,5 @@ | ||
import assert from "assert"; | ||
import "mocha"; | ||
import { MemoryKVStore } from "./memory"; | ||
describe("Test kvstore", () => { | ||
it("kvstore should not conflict", async () => { | ||
test("kvstore should not conflict", async () => { | ||
const test1KVStore = new MemoryKVStore("test1"); | ||
@@ -14,3 +12,3 @@ const test2KVStore = new MemoryKVStore("test2"); | ||
let valueFromTest2 = await test2KVStore.get(key); | ||
assert.strictEqual(valueFromTest2, undefined); | ||
expect(valueFromTest2).toBe(undefined); | ||
@@ -20,5 +18,5 @@ await test2KVStore.set(key, "test2"); | ||
valueFromTest2 = await test2KVStore.get(key); | ||
assert.strictEqual(valueFromTest1, "test1"); | ||
assert.strictEqual(valueFromTest2, "test2"); | ||
expect(valueFromTest1).toBe("test1"); | ||
expect(valueFromTest2).toBe("test2"); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50651
0
62
799