This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 3 files changed +4
-5
lines changed 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ module.exports = function repo (self) {
11
11
/**
12
12
* If the repo has been initialized, report the current version.
13
13
* Otherwise report the version that would be initialized.
14
+ *
15
+ * @param {function(Error, Number) } [callback]
16
+ * @returns {undefined }
14
17
*/
15
18
version : ( callback ) => {
16
19
self . _repo . _isInitialized ( err => {
Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
const expect = require ( 'chai' ) . expect
5
- const fs = require ( 'fs' )
6
- const path = require ( 'path' )
7
5
const compareDir = require ( 'dir-compare' ) . compareSync
8
6
const rimraf = require ( 'rimraf' ) . sync
9
7
const runOnAndOff = require ( '../utils/on-and-off' )
Original file line number Diff line number Diff line change 1
1
/* eslint-env mocha */
2
2
'use strict'
3
3
4
- const fs = require ( 'fs' )
5
4
const os = require ( 'os' )
6
- const path = require ( 'path' )
7
5
const expect = require ( 'chai' ) . expect
8
6
const repoVersion = require ( 'ipfs-repo' ) . repoVersion
9
7
const pkgversion = require ( '../../package.json' ) . version
@@ -36,7 +34,7 @@ describe('version', () => runOnAndOff((thing) => {
36
34
)
37
35
)
38
36
39
- describe ( 'handles --all' , function ( ) {
37
+ describe ( 'handles --all' , function ( ) {
40
38
it ( 'prints js-ipfs version' , ( ) =>
41
39
ipfs ( 'version --all' ) . then ( out =>
42
40
expect ( out ) . to . include ( `js-ipfs version: ${ pkgversion } ` )
You can’t perform that action at this time.
0 commit comments