Skip to content

Commit 27553a3

Browse files
authored
chore: version up (#149)
1 parent a61b568 commit 27553a3

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

src/constants.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict'
2+
3+
module.exports = {
4+
repoVersion: 6
5+
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const lockers = {
2222
fs: require('./lock')
2323
}
2424

25-
const repoVersion = 5
25+
const repoVersion = require('./constants').repoVersion
2626

2727
/**
2828
* IpfsRepo implements all required functionality to read and write to an ipfs repo.

test/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chai.use(require('dirty-chai'))
1010

1111
const IPFSRepo = require('../src')
1212

13-
describe('IPFS Repo Tests on on Node.js', () => {
13+
describe('IPFS Repo Tests onNode.js', () => {
1414
require('./options-test')
1515

1616
const repos = [{

test/options-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (!rimraf.sync) {
1212
}
1313
const Repo = require('../')
1414

15-
describe('IPFS Repo options Tests', () => {
15+
describe('custom options tests', () => {
1616
const repoPath = path.join(__dirname, 'slash', 'path')
1717
after(() => {
1818
rimraf.sync(repoPath)

test/repo-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = (repo) => {
6565
it('get version', (done) => {
6666
repo.version.get((err, version) => {
6767
expect(err).to.not.exist()
68-
expect(version).to.be.eql(5)
68+
expect(version).to.equal(6)
6969
done()
7070
})
7171
})
@@ -78,7 +78,7 @@ module.exports = (repo) => {
7878
expect(version).to.equal(9000)
7979
cb()
8080
},
81-
(cb) => repo.version.set(5, cb)
81+
(cb) => repo.version.set(6, cb)
8282
], done)
8383
})
8484
})

test/test-repo/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5
1+
6

0 commit comments

Comments
 (0)