Skip to content

Commit

Permalink
Merge pull request #129 from toebeann/dev
Browse files Browse the repository at this point in the history
v0.1.12
  • Loading branch information
toebeann authored Mar 3, 2023
2 parents 7c42c67 + 7ee60cf commit 58e5b0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typedoc-plugin-versions-cli",
"version": "0.1.11",
"version": "0.1.12",
"description": "A companion CLI tool for typedoc-plugins-versions.",
"main": "./dist/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/synchronize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const refreshVersionJs = (
export const refreshIndexHtml = (metadata: refreshedMetadata): string =>
`<meta http-equiv="refresh" content="0; url=${
metadata.stable ? 'stable' : 'dev'
}/" />`;
}/"/>`;

/**
* Generates all necessary symbolic links for {@link https://citkane.github.io/typedoc-plugin-versions typedoc-plugin-versions}.
Expand Down
4 changes: 2 additions & 2 deletions test/commands/synchronize.spec/refreshIndexHtml.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ describe('when metadata = { versions: [ "v1.0.0" ], stable: "v1.0.0" }', () => {
it('should redirect to stable', () => {
expect(
refreshIndexHtml({ versions: ['v1.0.0'], stable: 'v1.0.0' })
).toBe('<meta http-equiv="refresh" content="0; url=stable/" />');
).toBe('<meta http-equiv="refresh" content="0; url=stable/"/>');
});
});

describe('when metadata = { versions: [ "v0.1.0" ], dev: "v0.1.0" }', () => {
it('should redirect to dev', () => {
expect(refreshIndexHtml({ versions: ['v0.1.0'], dev: 'v0.1.0' })).toBe(
'<meta http-equiv="refresh" content="0; url=dev/" />'
'<meta http-equiv="refresh" content="0; url=dev/"/>'
);
});
});

0 comments on commit 58e5b0e

Please sign in to comment.