Skip to content

Commit

Permalink
Fixed Travis support
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Apr 5, 2016
1 parent 9995fbf commit c30e309
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
@@ -1,5 +1,5 @@
[![ISC License](https://img.shields.io/badge/license-ISC-brightgreen.svg?style=flat)](https://tldrlegal.com/license/-isc-license)
[![Build Status](https://travis-ci.org/martinheidegger/github-ls.svg?branch=master)](https://travis-ci.org/martinheidegger/github-ls)
[![Build Status](https://travis-ci.org/opengh/github-ls.svg?branch=master)](https://travis-ci.org/opengh/github-ls)
[![Coverage Status](https://coveralls.io/repos/github/martinheidegger/github-ls/badge.svg?branch=master)](https://coveralls.io/github/martinheidegger/github-ls?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

Expand Down
15 changes: 11 additions & 4 deletions test/github.js
Expand Up @@ -9,10 +9,17 @@ var github = new Github({
'user-agent': 'github-ls-test'
}
})
github.authenticate({
type: 'oauth',
token: require('../test_auth').token
})
try {
github.authenticate({
type: 'oauth',
token: require('../test_auth').token
})
} catch (e) {
github.authenticate({
type: 'oauth',
token: process.env.GITHUB_TOKEN
})
}

test('fetching with a null github client should work', function (t) {
ls(REPO + '/tree/test/test', null, function (err, list) {
Expand Down

0 comments on commit c30e309

Please sign in to comment.