Skip to content

Commit

Permalink
fix: redput: fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 5, 2023
1 parent 55a115e commit 9ddd8c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/read-gist/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import fetch from 'node-fetch';
export const create = ({token, Octokit}) => {
return new Octokit({
auth: token,
fetch,
request: {
fetch,
},
});
};
4 changes: 3 additions & 1 deletion lib/read-gist/create.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ test('redput: read-gist: create: token', (t) => {

const args = [{
auth: 'hello',
fetch,
request: {
fetch,
},
}];

t.calledWith(Octokit, args);
Expand Down

0 comments on commit 9ddd8c8

Please sign in to comment.