diff --git a/lib/Repository.js b/lib/Repository.js index 301e1230..7204805f 100644 --- a/lib/Repository.js +++ b/lib/Repository.js @@ -504,7 +504,8 @@ class Repository extends Requestable { * @return {Promise} - the promise for the http request */ updatePullRequst(number, options, cb) { - log('Deprecated: This method contains a typo and it has been deprecated. It will be removed in next major version. Use updatePullRequest() instead.'); + log('Deprecated: This method contains a typo and it has been deprecated. It will be removed in next major ' + + 'version. Use updatePullRequest() instead.'); return this.updatePullRequest(number, options, cb); } diff --git a/package.json b/package.json index c942525d..8bdcae5b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "clean": "gulp clean", "build": "gulp build", - "test": "mocha --opts ./mocha.opts test/*.spec.js", + "test": "mocha", "test-verbose": "DEBUG=github* npm test", "lint": "gulp lint", "make-docs": "node_modules/.bin/jsdoc -c .jsdoc.json --verbose", diff --git a/mocha.opts b/test/mocha.opts similarity index 100% rename from mocha.opts rename to test/mocha.opts diff --git a/test/repository.spec.js b/test/repository.spec.js index f747878d..8e709255 100644 --- a/test/repository.spec.js +++ b/test/repository.spec.js @@ -8,7 +8,6 @@ import getTestRepoName from './helpers/getTestRepoName'; describe('Repository', function() { let github; - let remoteRepo; let user; let imageB64; let imageBlob; @@ -30,6 +29,8 @@ describe('Repository', function() { }); describe('reading', function() { + let remoteRepo; + before(function() { remoteRepo = github.getRepo('michael', 'github'); }); @@ -265,6 +266,7 @@ describe('Repository', function() { const releaseBody = 'This is my 49 character long release description.'; let sha; let releaseId; + let remoteRepo; before(function() { user = github.getUser(); @@ -592,6 +594,8 @@ describe('Repository', function() { }); describe('deleting', function() { + let remoteRepo; + before(function() { remoteRepo = github.getRepo(testUser.USERNAME, testRepoName); }); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy