Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 8dc8301

Browse files
achingbrainvmx
authored andcommitted
fix: test types
The import loops confuse tsc.
1 parent ef4cf0c commit 8dc8301

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"test": "aegir test",
1313
"test:browser": "aegir test --target browser",
1414
"test:node": "aegir test --target node",
15-
"lint": "aegir lint",
15+
"lint": "run-s lint:*",
16+
"lint:js": "aegir lint",
17+
"lint:types": "aegir ts --check",
1618
"release": "aegir release",
1719
"release-minor": "aegir release --type minor",
1820
"release-major": "aegir release --type major",

src/dag-link/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const DAGLink = require('./')
3+
const DAGLink = require('./dagLink')
44

55
/**
66
* @param {*} link

src/dag-node/toDagLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const DAGLink = require('../dag-link')
3+
const DAGLink = require('../dag-link/dagLink')
44
const genCid = require('../genCid')
55

66
/**

test/dag-link-test.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const chai = require('aegir/utils/chai')
55
const expect = chai.expect
66
const CID = require('cids')
7-
const DAGLink = require('../src').DAGLink
7+
const DAGLink = require('../src/dag-link/dagLink')
88
const uint8ArrayFromString = require('uint8arrays/from-string')
99
const uint8ArrayToString = require('uint8arrays/to-string')
1010

test/dag-node-test.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ describe('DAGNode', () => {
547547
expect(node.size).to.be.above(0)
548548

549549
const serialized = dagPB.util.serialize(node)
550+
// @ts-ignore this is not part of interface-ipld-format
550551
const serializedObject = dagPB.util.serialize(obj)
551552
const deserialized = dagPB.util.deserialize(serialized)
552553
const deserializedObject = dagPB.util.deserialize(serializedObject)

test/resolver.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const chai = require('aegir/utils/chai')
66
const expect = chai.expect
77
const CID = require('cids')
88

9-
const { DAGNode, resolver } = require('../src')
9+
const { resolver } = require('../src')
10+
const DAGNode = require('../src/dag-node/dagNode')
1011
const utils = require('../src/util')
1112
const uint8ArrayFromString = require('uint8arrays/from-string')
1213

test/util.spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ const {
99
multihash
1010
} = require('multihashing-async')
1111

12-
const {
13-
DAGLink
14-
} = require('../src')
12+
const DAGLink = require('../src/dag-link/dagLink')
1513
const {
1614
serialize,
1715
deserialize,

0 commit comments

Comments
 (0)