Skip to content

chore: version up #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = {
repoVersion: 6
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const lockers = {
fs: require('./lock')
}

const repoVersion = 5
const repoVersion = require('./constants').repoVersion

/**
* IpfsRepo implements all required functionality to read and write to an ipfs repo.
Expand Down
2 changes: 1 addition & 1 deletion test/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ chai.use(require('dirty-chai'))

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

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

const repos = [{
Expand Down
2 changes: 1 addition & 1 deletion test/options-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!rimraf.sync) {
}
const Repo = require('../')

describe('IPFS Repo options Tests', () => {
describe('custom options tests', () => {
const repoPath = path.join(__dirname, 'slash', 'path')
after(() => {
rimraf.sync(repoPath)
Expand Down
4 changes: 2 additions & 2 deletions test/repo-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = (repo) => {
it('get version', (done) => {
repo.version.get((err, version) => {
expect(err).to.not.exist()
expect(version).to.be.eql(5)
expect(version).to.equal(6)
done()
})
})
Expand All @@ -78,7 +78,7 @@ module.exports = (repo) => {
expect(version).to.equal(9000)
cb()
},
(cb) => repo.version.set(5, cb)
(cb) => repo.version.set(6, cb)
], done)
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/test-repo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5
6