Skip to content

Commit c64ff2e

Browse files
committed
fix(nx-plugin): fix typo
1 parent 3f361ae commit c64ff2e

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

e2e/nx-plugin-e2e/tests/configuration.e2e.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ describe('nx-plugin g configuration', () => {
1212
],
1313
});
1414

15-
const cleadStderr = removeColorCodes(stderr);
15+
const cleanedStderr = removeColorCodes(stderr);
1616
expect(code).toBe(0);
1717

18-
expect(cleadStderr).toContain(
18+
expect(cleanedStderr).toContain(
1919
`NOTE: No config file created as code-pushup.config.js file already exists.`,
2020
);
21-
expect(cleadStderr).toContain(
21+
expect(cleanedStderr).toContain(
2222
'NOTE: The "dryRun" flag means no changes were made.',
2323
);
2424

25-
const cleadStdout = removeColorCodes(stdout);
26-
expect(cleadStdout).toContain(
25+
const cleanedStdout = removeColorCodes(stdout);
26+
expect(cleanedStdout).toContain(
2727
`NX Generating @code-pushup/nx-plugin:configuration`,
2828
);
2929
/*
30-
expect(cleadStdout).toContain(`CREATE examples/react-todos-app/code-pushup.config.ts`);
31-
expect(cleadStdout).toContain(`UPDATE examples/react-todos-app/project.json`);
30+
expect(cleanedStdout).toContain(`CREATE examples/react-todos-app/code-pushup.config.ts`);
31+
expect(cleanedStdout).toContain(`UPDATE examples/react-todos-app/project.json`);
3232
*/
3333
});
3434
});

e2e/nx-plugin-e2e/tests/init.e2e.test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ describe('nx-plugin g init', () => {
1010
observer: { onStdout: console.info },
1111
});
1212

13-
const cleadStderr = removeColorCodes(stderr);
14-
expect(cleadStderr).toContain(
13+
const cleanedStderr = removeColorCodes(stderr);
14+
expect(cleanedStderr).toContain(
1515
'NOTE: The "dryRun" flag means no changes were made.',
1616
);
1717
expect(code).toBe(0);
18-
const cleadStdout = removeColorCodes(stdout);
19-
expect(cleadStdout).toContain(`NX Generating @code-pushup/nx-plugin:init`);
20-
expect(cleadStdout).toContain(`UPDATE package.json`);
21-
expect(cleadStdout).toContain(`UPDATE nx.json`);
18+
const cleanedStdout = removeColorCodes(stdout);
19+
expect(cleanedStdout).toContain(
20+
`NX Generating @code-pushup/nx-plugin:init`,
21+
);
22+
expect(cleanedStdout).toContain(`UPDATE package.json`);
23+
expect(cleanedStdout).toContain(`UPDATE nx.json`);
2224
});
2325
});

0 commit comments

Comments
 (0)