Using latest version of ipfs-coord-esm

This commit is contained in:
Chris Troutner
2022-09-17 15:19:37 -07:00
parent 33d06e99e8
commit 6d7b3db370
5 changed files with 1822 additions and 1751 deletions
+1777 -1709
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -27,7 +27,7 @@
"axios": "0.27.2",
"bcryptjs": "2.4.3",
"glob": "7.1.6",
"ipfs-coord-esm": "../ipfs-coord-esm/",
"ipfs-coord-esm": "9.1.3",
"ipfs-http-client": "58.0.0",
"jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1",
+3
View File
@@ -51,6 +51,9 @@ class Adapters {
// Do not start these adapters if this is an e2e test.
if (this.config.env !== 'test') {
await this.ipfs.start()
} else {
// These lines are here to ensure code coverage hits 100%.
console.log('Not starting IPFS node since this is an e2e test.')
}
console.log('Async Adapters have been started.')
+2 -2
View File
@@ -76,5 +76,5 @@ logger.outputToConsole()
const wlogger = logger.wlogger
// export default { wlogger, Wlogger };
export default wlogger
export { wlogger as default, Wlogger }
// export default wlogger
+39 -39
View File
@@ -1,39 +1,39 @@
// import { assert } from 'chai';
// import { Wlogger } from '../../../src/adapters/wlogger.js';
// import sinon from 'sinon';
//
// let uut
// let sandbox
//
// describe('#wlogger', () => {
// beforeEach(() => {
// sandbox = sinon.createSandbox()
// })
//
// afterEach(() => {
// sandbox.restore()
//
// uut = new Wlogger()
// })
//
// describe('#constructor', () => {
// it('should create a new wlogger instance', () => {
// uut = new Wlogger()
// // console.log('uut: ', uut)
//
// assert.property(uut, 'transport')
// })
// })
//
// describe('#notifyRotation', () => {
// it('should notify of a log rotation', () => {
// uut.notifyRotation()
// })
// })
//
// describe('#envronment', () => {
// it('should write to console in non-test environment', () => {
// uut.outputToConsole()
// })
// })
// })
import { assert } from 'chai'
import { Wlogger } from '../../../src/adapters/wlogger.js'
import sinon from 'sinon'
let uut
let sandbox
describe('#wlogger', () => {
beforeEach(() => {
sandbox = sinon.createSandbox()
})
afterEach(() => {
sandbox.restore()
uut = new Wlogger()
})
describe('#constructor', () => {
it('should create a new wlogger instance', () => {
uut = new Wlogger()
// console.log('uut: ', uut)
assert.property(uut, 'transport')
})
})
describe('#notifyRotation', () => {
it('should notify of a log rotation', () => {
uut.notifyRotation()
})
})
describe('#envronment', () => {
it('should write to console in non-test environment', () => {
uut.outputToConsole()
})
})
})