Skip to content

Commit

Permalink
Let's render a preview on Bump.sh
Browse files Browse the repository at this point in the history
Favor Bump.sh instead of Bump.

Noticed by working on GitLab integration, cf
https://gitlab.com/Polo2/multi-documentations.
  • Loading branch information
Polo2 committed Jul 5, 2024
1 parent fcaa568 commit 4885424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class Preview extends Command {
this.d(`${file} looks like an ${api.specName} spec version ${api.version}`);

if (!currentPreview) {
cli.action.start("* Let's render a preview on Bump");
cli.action.start("* Let's render a preview on Bump.sh");
}

const request: PreviewRequest = {
Expand Down
6 changes: 3 additions & 3 deletions test/commands/preview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('preview subcommand', () => {
.stderr()
.command(['preview', 'examples/valid/openapi.v3.json'])
.it('Creates a preview from an openapi file', ({ stdout, stderr }) => {
expect(stderr).to.match(/Let's render a preview on Bump... done/);
expect(stderr).to.match(/Let's render a preview on Bump.sh... done/);

expect(stdout).to.match(/preview is visible at/);
expect(stdout).to.match(/https:\/\/bump.sh\/preview\/123abc-cba321/);
Expand All @@ -35,7 +35,7 @@ describe('preview subcommand', () => {
.stderr()
.command(['preview', '--live', 'examples/valid/openapi.v3.json'])
.it('Creates a live preview and waits for file update', ({ stdout, stderr }) => {
expect(stderr).to.match(/Let's render a preview on Bump... done/);
expect(stderr).to.match(/Let's render a preview on Bump.sh... done/);

expect(stdout).to.match(/preview is visible at/);
expect(stdout).to.match(/https:\/\/bump.sh\/preview\/123abc-cba321/);
Expand All @@ -61,7 +61,7 @@ describe('preview subcommand', () => {
.stderr()
.command(['preview', 'examples/valid/asyncapi.v2.yml'])
.it('Creates a preview from an asyncapi file with $refs', ({ stdout, stderr }) => {
expect(stderr).to.match(/Let's render a preview on Bump... done/);
expect(stderr).to.match(/Let's render a preview on Bump.sh... done/);

expect(stdout).to.match(/preview is visible at/);
expect(stdout).to.match(/https:\/\/bump.sh\/preview\/123abc-cba321/);
Expand Down

0 comments on commit 4885424

Please sign in to comment.