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

Commit

Permalink
fix: test types
Browse files Browse the repository at this point in the history
The import loops confuse tsc.
  • Loading branch information
achingbrain authored and vmx committed Mar 11, 2021
1 parent ef4cf0c commit 8dc8301
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"test": "aegir test",
"test:browser": "aegir test --target browser",
"test:node": "aegir test --target node",
"lint": "aegir lint",
"lint": "run-s lint:*",
"lint:js": "aegir lint",
"lint:types": "aegir ts --check",
"release": "aegir release",
"release-minor": "aegir release --type minor",
"release-major": "aegir release --type major",
Expand Down
2 changes: 1 addition & 1 deletion src/dag-link/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const DAGLink = require('./')
const DAGLink = require('./dagLink')

/**
* @param {*} link
Expand Down
2 changes: 1 addition & 1 deletion src/dag-node/toDagLink.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const DAGLink = require('../dag-link')
const DAGLink = require('../dag-link/dagLink')
const genCid = require('../genCid')

/**
Expand Down
2 changes: 1 addition & 1 deletion test/dag-link-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const chai = require('aegir/utils/chai')
const expect = chai.expect
const CID = require('cids')
const DAGLink = require('../src').DAGLink
const DAGLink = require('../src/dag-link/dagLink')
const uint8ArrayFromString = require('uint8arrays/from-string')
const uint8ArrayToString = require('uint8arrays/to-string')

Expand Down
1 change: 1 addition & 0 deletions test/dag-node-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ describe('DAGNode', () => {
expect(node.size).to.be.above(0)

const serialized = dagPB.util.serialize(node)
// @ts-ignore this is not part of interface-ipld-format
const serializedObject = dagPB.util.serialize(obj)
const deserialized = dagPB.util.deserialize(serialized)
const deserializedObject = dagPB.util.deserialize(serializedObject)
Expand Down
3 changes: 2 additions & 1 deletion test/resolver.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const chai = require('aegir/utils/chai')
const expect = chai.expect
const CID = require('cids')

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

Expand Down
4 changes: 1 addition & 3 deletions test/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const {
multihash
} = require('multihashing-async')

const {
DAGLink
} = require('../src')
const DAGLink = require('../src/dag-link/dagLink')
const {
serialize,
deserialize,
Expand Down

0 comments on commit 8dc8301

Please sign in to comment.