Skip to content

Commit

Permalink
test: stub
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWells committed Apr 11, 2024
1 parent 84fca2b commit e723883
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/transforms/code/resolve-github-file.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const { resolveGithubContents } = require('./resolve-github-file')

let repoFilePath
// repoFilePath = 'https://github.com/DavidWells/markdown-magic/blob/master/package.json'
// repoFilePath = 'https://github.com/DavidWells/notes/blob/master/cognito.md'
// repoFilePath = 'github.com/DavidWells/notes/blob/master/cognito.md#L1-L5'
repoFilePath = 'github.com/DavidWells/notes/blob/master/cognito.md'
// repoFilePath = 'https://raw.githubusercontent.com/DavidWells/notes/master/cognito.md'
// repoFilePath = 'raw.githubusercontent.com/DavidWells/notes/master/cognito.md'
// repoFilePath = 'https://github.com/reapit/foundations/blob/53b2be65ea69d5f1338dbea6e5028c7599d78cf7/packages/connect-session/src/browser/index.ts#L125-L163'
resolveGithubContents({
repoFilePath,
debug: true,
accessToken: process.env.GITHUB_LAST_EDITED_TOKEN
})
.then(console.log)
.catch(console.error);

0 comments on commit e723883

Please sign in to comment.