Skip to content

Commit

Permalink
remove depreciated package
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 13, 2020
1 parent 20c2121 commit afffc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,9 +36,9 @@
},
"devDependencies": {
"gh-pages": "^3.1.0",
"git-pull-or-clone": "^2.0.1",
"live-server": "^1.1.0",
"npm-run-all": "^4.1.5",
"quick-gits": "^1.0.4",
"rimraf": "^3.0.2",
"sitedown": "^4.0.0",
"snazzy": "^8.0.0",
Expand Down
10 changes: 5 additions & 5 deletions test/get-defaults-test.js
@@ -1,20 +1,20 @@
var test = require('tape')
var path = require('path')
var tmp = require('tmp')
var gits = require('quick-gits')
var gitPullOrClone = require('git-pull-or-clone')
var rimraf = require('rimraf')

var getDefaults = require('../bin/lib/get-defaults')
var remote = 'https://github.com/bcomnes/gh-release-test.git'

var tmpDir, repo
var repoDir, tmpDir

test('Set up test environment', function (t) {
t.plan(2)
tmpDir = tmp.dirSync({ unsafeCleanup: true })
repoDir = path.join(tmpDir.name, 'test-repo')
t.ok(tmpDir.name, 'valid tmp dir exists')
repo = gits(tmpDir.name)
repo.clone(remote, function (err) {
gitPullOrClone(remote, repoDir, function (err) {
t.error(err, 'cloned test repo')
})
})
Expand All @@ -23,7 +23,7 @@ test('get-defaults', function (t) {
t.plan(2)
var commitish = getDefaults.getTargetCommitish()
t.ok(commitish, 'Check for commitish')
getDefaults(tmpDir.name, false, function (err, defaults) {
getDefaults(repoDir, false, function (err, defaults) {
t.error(err, 'Got the defaults from the test repo')
})
})
Expand Down

0 comments on commit afffc17

Please sign in to comment.