forked from cerc-io/laconic-sdk
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
297353f123 | ||
|
|
80348594f8 | ||
|
|
55675c7b55 | ||
|
|
10d58ca028 | ||
|
|
95bdacb4a1 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cerc-io/laconic-sdk",
|
"name": "@cerc-io/laconic-sdk",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"repository": "git@github.com:cerc-io/laconic-sdk.git",
|
"repository": "git@github.com:cerc-io/laconic-sdk.git",
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const nameserviceExpiryTests = () => {
|
|||||||
fee
|
fee
|
||||||
)
|
)
|
||||||
|
|
||||||
const [record] = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
const [record] = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||||
recordExpiryTime = new Date(record.expiryTime);
|
recordExpiryTime = new Date(record.expiryTime);
|
||||||
|
|
||||||
const [bond] = await registry.getBondsByIds([bondId]);
|
const [bond] = await registry.getBondsByIds([bondId]);
|
||||||
@@ -63,7 +63,7 @@ const nameserviceExpiryTests = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Check record expiry time', async() => {
|
test('Check record expiry time', async() => {
|
||||||
const [record] = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
const [record] = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||||
const updatedExpiryTime = new Date(record.expiryTime);
|
const updatedExpiryTime = new Date(record.expiryTime);
|
||||||
expect(updatedExpiryTime.getTime()).toBeGreaterThan(recordExpiryTime.getTime());
|
expect(updatedExpiryTime.getTime()).toBeGreaterThan(recordExpiryTime.getTime());
|
||||||
recordExpiryTime = updatedExpiryTime;
|
recordExpiryTime = updatedExpiryTime;
|
||||||
@@ -87,7 +87,7 @@ const nameserviceExpiryTests = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Check record deleted without bond balance', async() => {
|
test('Check record deleted without bond balance', async() => {
|
||||||
const records = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
const records = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||||
expect(records).toHaveLength(0);
|
expect(records).toHaveLength(0);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -244,7 +244,6 @@ const namingTests = () => {
|
|||||||
|
|
||||||
const records = await registry.lookupNames([crn], true);
|
const records = await registry.lookupNames([crn], true);
|
||||||
expect(records).toBeDefined();
|
expect(records).toBeDefined();
|
||||||
expect(records).toBeDefined();
|
|
||||||
expect(records).toHaveLength(1);
|
expect(records).toHaveLength(1);
|
||||||
|
|
||||||
const [{ latest }] = records;
|
const [{ latest }] = records;
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ record:
|
|||||||
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||||
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||||
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||||
version: 1.0.17
|
version: 1.0.18
|
||||||
|
|||||||
Reference in New Issue
Block a user