Skip to content

Commit d58481d

Browse files
committed
fix tests
1 parent ec7034c commit d58481d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ install:
88

99
test: install
1010
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
11-
--bail \
1211
--reporter $(REPORTER) \
1312
--timeout $(TIMEOUT) \
1413
$(MOCHA_OPTS) \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"travis-cov": { "threshold": 100 }
1010
},
1111
"dependencies": {
12-
"restful-client": ">=0.0.2",
12+
"restful-client": ">=0.0.4",
1313
"debug": ">=0.7.2"
1414
},
1515
"devDependencies": {

test/gitlab.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ describe('gitlab.test.js', function () {
4848
client.request('post', '/projects/:id/milestones/:milestone_id', {id: 223, milestone_id: 76, title: '123'},
4949
function (err, milestones) {
5050
should.exists(err);
51-
err.name.should.equal('GitlabReponseFormatError');
52-
err.message.should.equal('Parse json error: Unexpected end of input');
51+
err.name.should.equal('Gitlab405Error');
52+
err.message.should.equal('Unknow Error 405');
5353
should.not.exists(milestones);
5454
done();
5555
});

test/repository.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ describe('repository.test.js', function () {
213213
client.repository.getBlob({ id: 441, sha: 'master', filepath: 'lib/alidata.js' }, function (err, blob) {
214214
should.not.exists(err);
215215
should.exists(blob);
216+
should.ok(Buffer.isBuffer(blob));
216217
blob.should.be.instanceof(Buffer);
217218
blob.length.should.above(0);
218219
blob.toString().should.include('alidata - lib/alidata.js');

0 commit comments

Comments
 (0)