mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
Using latest version of ipfs-coord-esm
This commit is contained in:
Generated
+1777
-1709
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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",
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user