From be4fec68ba1854acab5d2eec24f2719f685546fd Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 6 Jul 2021 16:14:41 +0100 Subject: [PATCH] chore: update deps BREAKING CHANGE: uses new interface-datastore types --- package.json | 7 +++---- test/index.spec.js | 6 ++---- test/utils/s3-mock.js | 4 +--- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index bddb064..373250e 100644 --- a/package.json +++ b/package.json @@ -36,16 +36,15 @@ "homepage": "https://github.com/ipfs/js-datastore-s3#readme", "dependencies": { "buffer": "^6.0.3", - "datastore-core": "^4.0.0", - "interface-datastore": "^4.0.0", + "datastore-core": "^5.0.0", + "interface-datastore": "^5.1.1", "it-filter": "^1.0.2" }, "devDependencies": { "aegir": "^33.0.0", "assert": "^2.0.0", "aws-sdk": "^2.579.0", - "chai": "^4.2.0", - "dirty-chai": "^2.0.1", + "interface-datastore-tests": "^1.0.0", "stand-in": "^4.2.0", "util": "^0.12.3" }, diff --git a/test/index.spec.js b/test/index.spec.js index d2eceb8..2f04402 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -1,9 +1,7 @@ /* eslint-env mocha */ 'use strict' -const chai = require('chai') -chai.use(require('dirty-chai')) -const expect = chai.expect +const { expect } = require('aegir/utils/chai') const { Buffer } = require('buffer') const standin = require('stand-in') @@ -202,7 +200,7 @@ describe('S3Datastore', () => { }) describe('interface-datastore', () => { - require('interface-datastore/src/tests')({ + require('interface-datastore-tests')({ setup () { const s3 = new S3({ params: { Bucket: 'my-ipfs-bucket' } diff --git a/test/utils/s3-mock.js b/test/utils/s3-mock.js index d756690..c809a82 100644 --- a/test/utils/s3-mock.js +++ b/test/utils/s3-mock.js @@ -1,8 +1,6 @@ 'use strict' -const chai = require('chai') -chai.use(require('dirty-chai')) -const expect = chai.expect +const { expect } = require('aegir/utils/chai') const standin = require('stand-in') const { Buffer } = require('buffer')