Skip to content

Commit

Permalink
chore: version up (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Nov 8, 2017
1 parent a61b568 commit 27553a3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
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

0 comments on commit 27553a3

Please sign in to comment.