Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update octicon version #1652

Merged
merged 17 commits into from
Sep 18, 2021
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ packages/core/template/*/_site

# Generated site (MarkBind)
packages/cli/test/functional/*/_site
packages/cli/test/functional/test_site/expected/diagrams/*.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will still need to track the changes of the generated diagrams when there are updates to the test .puml files here (add/remove .puml files or simply updating the code in the .puml files etc).

What I meant earlier about "ignoring" the generated images is when there are no changes made to the original .puml test files before running updatetest. In this scenario, we should revert the changes made to the expected images generated after updatetest as the images should not have changed. Sorry for the confusion 😅

Just need to remove this line here and the rest is good 👍


# vscode configuration
.vscode/
Expand Down
72 changes: 63 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions packages/cli/test/functional/testUtil/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const diffChars = require('./diffChars');
const _ = {};
_.isEqual = require('lodash/isEqual');

// Other files to ignore / files with binary extensions not recognised by istextorbinary package
// Other files to ignore / files with binary extensions not recognized by istextorbinary package
const TEST_BLACKLIST = ignore().add([
'*.log',
'*.woff',
Expand All @@ -24,6 +24,7 @@ function _readFileSync(...paths) {
return fs.readFileSync(path.resolve(...paths), 'utf8');
}

// Used to compare files expected to be generated by the build process against the expected files
function compare(root, expectedSiteRelativePath = 'expected', siteRelativePath = '_site') {
const expectedDirectory = path.join(root, expectedSiteRelativePath);
const actualDirectory = path.join(root, siteRelativePath);
Expand Down Expand Up @@ -65,7 +66,9 @@ function compare(root, expectedSiteRelativePath = 'expected', siteRelativePath =
}
/* eslint-enable no-continue */

if (error) throw new Error('Diffs found in files');
if (error) {
throw new Error('Diffs found in files');
}
}

module.exports = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: inline-block;
vertical-align: text-top;
fill: currentColor;
overflow: visible;
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.14.0",
"@markbind/core-web": "^3.0.6",
"@primer/octicons": "^9.3.1",
"@primer/octicons": "^15.0.1",
"@sindresorhus/slugify": "^0.9.1",
"bluebird": "^3.7.2",
"bootswatch": "^4.4.1",
Expand Down Expand Up @@ -72,4 +72,4 @@
"jest": "^26.1.0",
"memfs": "^3.0.1"
}
}
}