mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-23 01:32:04 -07:00
feat(tests): Added tests to gatsby-ipfs-web-wallet
This commit is contained in:
+2
-1
@@ -18,7 +18,7 @@
|
||||
"serve": "gatsby serve",
|
||||
"clean": "gatsby clean",
|
||||
"test": "npm run lint",
|
||||
"unit": "mocha"
|
||||
"unit": "mocha test/unit/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chris.troutner/gatsby-plugin-ipfs": "^2.0.3",
|
||||
@@ -62,6 +62,7 @@
|
||||
"eslint-plugin-prettier": "^3.3.1",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"husky": "^4.3.8",
|
||||
"mocha": "^9.1.3",
|
||||
"prettier": "2.2.1",
|
||||
"semantic-release": "^17.3.7",
|
||||
"standard": "^16.0.3"
|
||||
|
||||
@@ -10,8 +10,12 @@
|
||||
*/
|
||||
|
||||
// const PQueue = require('p-queue').default
|
||||
'use strict'
|
||||
|
||||
import PQueue from 'p-queue'
|
||||
const pRetry = require('p-retry')
|
||||
import pRetry from 'p-retry'
|
||||
|
||||
// const pRetry = require('p-retry')
|
||||
|
||||
let _this
|
||||
|
||||
@@ -108,5 +112,4 @@ class RetryQueue {
|
||||
return new Promise(resolve => setTimeout(resolve, ms))
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RetryQueue
|
||||
export default RetryQueue
|
||||
@@ -2,11 +2,13 @@
|
||||
Unit tests for the retry-queue library.
|
||||
*/
|
||||
|
||||
const sinon = require('sinon')
|
||||
const assert = require('chai').assert
|
||||
// const BCHJS = require('@psf/bch-js')
|
||||
import chai from 'chai'
|
||||
import sinon from 'sinon'
|
||||
|
||||
const RetryQueue = require('../../src/lib/retry-queue')
|
||||
// const BCHJS = require('@psf/bch-js')
|
||||
import RetryQueue from '../../src/lib/retry-queue.mjs'
|
||||
|
||||
const assert = chai.assert
|
||||
|
||||
// const bchjs = new BCHJS()
|
||||
let uut
|
||||
Reference in New Issue
Block a user