Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 2772221

Browse files
committed
lint/doc
1 parent 8ea5577 commit 2772221

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/core/components/repo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = function repo (self) {
1111
/**
1212
* If the repo has been initialized, report the current version.
1313
* Otherwise report the version that would be initialized.
14+
*
15+
* @param {function(Error, Number)} [callback]
16+
* @returns {undefined}
1417
*/
1518
version: (callback) => {
1619
self._repo._isInitialized(err => {

test/cli/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const expect = require('chai').expect
54
const fs = require('fs')
5+
const expect = require('chai').expect
66
const path = require('path')
77
const compareDir = require('dir-compare').compareSync
88
const rimraf = require('rimraf').sync

test/cli/repo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const fs = require('fs')
5-
const path = require('path')
64
const expect = require('chai').expect
75
const repoVersion = require('ipfs-repo').repoVersion
86

test/cli/version.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const fs = require('fs')
54
const os = require('os')
6-
const path = require('path')
75
const expect = require('chai').expect
86
const repoVersion = require('ipfs-repo').repoVersion
97
const pkgversion = require('../../package.json').version
@@ -36,7 +34,7 @@ describe('version', () => runOnAndOff((thing) => {
3634
)
3735
)
3836

39-
describe('handles --all', function() {
37+
describe('handles --all', function () {
4038
it('prints js-ipfs version', () =>
4139
ipfs('version --all').then(out =>
4240
expect(out).to.include(`js-ipfs version: ${pkgversion}`)

0 commit comments

Comments
 (0)