fix comments

Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
This commit is contained in:
Vincenzo Scamporlino
2021-11-15 16:32:46 +01:00
parent b6b4d4b73f
commit 677bfc2dd0
8 changed files with 32 additions and 19 deletions
@@ -252,9 +252,9 @@ describe('bumpBackstageJsonVersion', () => {
jest.resetAllMocks();
});
it('should bump version in .backstage.json', async () => {
it('should bump version in backstage.json', async () => {
mockFs({
'/.backstage.json': JSON.stringify({ version: '0.0.1' }),
'/backstage.json': JSON.stringify({ version: '0.0.1' }),
});
paths.targetDir = '/';
const latest = '1.4.1';
@@ -276,11 +276,11 @@ describe('bumpBackstageJsonVersion', () => {
await bumpBackstageJsonVersion();
const json = await fs.readJson('/.backstage.json');
const json = await fs.readJson('/backstage.json');
expect(json).toEqual({ version: '1.4.1' });
});
it("should create .backstage.json if doesn't exist", async () => {
it("should create backstage.json if doesn't exist", async () => {
mockFs({});
paths.targetDir = '/';
const latest = '1.4.1';
@@ -302,7 +302,7 @@ describe('bumpBackstageJsonVersion', () => {
await bumpBackstageJsonVersion();
const json = await fs.readJson('/.backstage.json');
const json = await fs.readJson('/backstage.json');
expect(json).toEqual({ version: '1.4.1' });
});
});
+2 -2
View File
@@ -296,8 +296,8 @@ export async function bumpBackstageJsonVersion() {
console.log(
chalk.yellow(
typeof backstageJson === 'undefined'
? 'Creating .backstage.json'
: 'Bumping version in .backstage.json',
? `Creating ${BACKSTAGE_JSON}`
: `Bumping version in ${BACKSTAGE_JSON}`,
),
);