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:
@@ -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