Skip to content

Commit ddfe973

Browse files
committed
Fix tests.
1 parent 8a0cfa1 commit ddfe973

File tree

2 files changed

+299
-299
lines changed

2 files changed

+299
-299
lines changed

apps/rush-lib/src/cli/test/RushCommandLineParser.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('RushCommandLineParser', () => {
183183
});
184184

185185
describe(`'rebuild' action`, () => {
186-
it(`executes the package's 'rebuild' (not 'build') script`, () => {
186+
it(`executes the package's 'build' script`, () => {
187187
const repoName: string = 'overrideRebuildAndRunRebuildActionRepo';
188188
const instance: IParserTestInstance = getCommandLineParserInstance(repoName, 'rebuild');
189189

@@ -195,7 +195,7 @@ describe('RushCommandLineParser', () => {
195195
expect(packageCount).toEqual(2);
196196

197197
// Use regex for task name in case spaces were prepended or appended to spawned command
198-
const expectedBuildTaskRegexp: RegExp = /fake_REbuild_task_but_works_with_mock/;
198+
const expectedBuildTaskRegexp: RegExp = /fake_build_task_but_works_with_mock/;
199199

200200
// eslint-disable-next-line @typescript-eslint/no-explicit-any
201201
const firstSpawn: any[] = instance.spawnMock.mock.calls[0];
@@ -252,7 +252,7 @@ describe('RushCommandLineParser', () => {
252252
});
253253

254254
describe(`'rebuild' action`, () => {
255-
it(`executes the package's 'rebuild' (not 'build') script`, () => {
255+
it(`executes the package's 'build' script`, () => {
256256
const repoName: string = 'overrideAndDefaultRebuildActionRepo';
257257
const instance: IParserTestInstance = getCommandLineParserInstance(repoName, 'rebuild');
258258
expect.assertions(8);
@@ -263,7 +263,7 @@ describe('RushCommandLineParser', () => {
263263
expect(packageCount).toEqual(2);
264264

265265
// Use regex for task name in case spaces were prepended or appended to spawned command
266-
const expectedBuildTaskRegexp: RegExp = /fake_REbuild_task_but_works_with_mock/;
266+
const expectedBuildTaskRegexp: RegExp = /fake_build_task_but_works_with_mock/;
267267

268268
// eslint-disable-next-line @typescript-eslint/no-explicit-any
269269
const firstSpawn: any[] = instance.spawnMock.mock.calls[0];

0 commit comments

Comments
 (0)