Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
xt0rted committed Sep 24, 2020
1 parent 07caf15 commit 95e5994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions e2e/automated.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('End to End tests', () => {
});

describe('single blob', () => {
fixtures.forEach(({ url, content, lineNumber, targetUrl }) => {
fixtures.forEach(({ url, file, content, lineNumber, targetUrl }) => {
it(`resolves ${content} to ${targetUrl}`, async () => {
if (lineNumber) {
try {
Expand All @@ -53,10 +53,6 @@ describe('End to End tests', () => {
`#LC${lineNumber} .octolinker-link`,
);
} catch (ex) {
const file = url.replace(
'https://github.com/OctoLinker/OctoLinker/blob/master/',
'',
);
process.stdout.write(
`\n:error file=${file},line=${lineNumber}::${ex.message}\n`,
);
Expand Down
1 change: 1 addition & 0 deletions e2e/generate-fixtures-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function findTests(contents) {

memo.push({
url: `${fixturesRoot}${filePath}`,
file: `e2e${filePath}`,
content: lines[index + 1].trim(),
targetUrl,
lineNumber,
Expand Down

0 comments on commit 95e5994

Please sign in to comment.