Skip to content

Commit

Permalink
Merge pull request #16 from citkane/dev
Browse files Browse the repository at this point in the history
Bump to 0.2.1
  • Loading branch information
toebeann committed Sep 26, 2022
2 parents eacd02d + 93793a2 commit aea8047
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
node_modules
docs
.nyc*
/test/coverage
4 changes: 2 additions & 2 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typedoc-plugin-versions",
"version": "0.2.0",
"version": "0.2.1",
"description": "It keeps track of your document builds and provides a select menu for versions",
"main": "src/index",
"scripts": {
Expand All @@ -23,7 +23,8 @@
"plugin",
"typedoc-plugin",
"versions",
"versioning"
"versioning",
"typedocplugin"
],
"author": "Michael Jonker",
"contributors": [
Expand Down
11 changes: 8 additions & 3 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,15 @@ describe('Unit testing for typedoc-plugin-versions', function () {
vUtils.refreshMetadata(metadata, docsPath).dev,
'v0.10.1'
);
const currentVersion = process.env.npm_package_version;
assert.equal(
vUtils.refreshMetadata(metadata, docsPath, undefined, '0.2.0')
.dev,
'v0.2.0'
vUtils.refreshMetadata(
metadata,
docsPath,
undefined,
currentVersion
).dev,
'v' + currentVersion
);
assert.equal(
// will fail when our package.json version > 0.10.1
Expand Down

0 comments on commit aea8047

Please sign in to comment.