Skip to content

Commit 736bf89

Browse files
xangxiongtkyi
authored andcommitted
fix(1689): Fix getFile value to response.body (#63)
1 parent 1204b66 commit 736bf89

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class BitbucketScm extends Scm {
539539
`STATUS CODE ${response.statusCode}: ${JSON.stringify(response.body)}`);
540540
}
541541

542-
return response.body.data;
542+
return response.body;
543543
});
544544
}
545545

test/index.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,7 @@ describe('index', function () {
835835
beforeEach(() => {
836836
fakeResponse = {
837837
statusCode: 200,
838-
body: {
839-
node: 'nodeValue',
840-
path: 'path/to/file.txt',
841-
data: 'dataValue',
842-
size: 14
843-
}
838+
body: 'dataValue'
844839
};
845840
requestMock.yieldsAsync(null, fakeResponse, fakeResponse.body);
846841
});

0 commit comments

Comments
 (0)