Skip to content

Commit a1fdb3c

Browse files
author
Kelly Selden
committed
projectPath => projectRoot
1 parent 0551832 commit a1fdb3c

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

test/unit/get-start-and-end-commands-test.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const packageName = 'ember-cli';
2424
const commandName = 'ember';
2525
const blueprint = 'test-blueprint';
2626
const blueprintPath = '/path/to/blueprint';
27-
const projectPath = path.normalize(`${cwd}/${projectName}`);
27+
const projectRoot = path.normalize(`${cwd}/${projectName}`);
2828
const baseBlueprint = loadDefaultBlueprint([], baseVersion);
2929
const defaultStartBlueprint = loadDefaultBlueprint([], startVersion);
3030
const defaultEndBlueprint = loadDefaultBlueprint([], endVersion);
@@ -113,7 +113,7 @@ describe(_getStartAndEndCommands, function() {
113113
.withArgs(path.join(blueprintPath, 'package'))
114114
.returns({ keywords: ['ember-blueprint'] });
115115

116-
expect(await createProject(cwd)).to.equal(projectPath);
116+
expect(await createProject(cwd)).to.equal(projectRoot);
117117

118118
expect(spawnStub.args).to.deep.equal([[
119119
'node',
@@ -151,7 +151,7 @@ describe(_getStartAndEndCommands, function() {
151151
.withArgs(path.join(blueprintPath, 'package'))
152152
.returns({ keywords: ['ember-blueprint'] });
153153

154-
expect(await createProject(cwd)).to.equal(projectPath);
154+
expect(await createProject(cwd)).to.equal(projectRoot);
155155

156156
expect(spawnStub.args).to.deep.equal([
157157
[
@@ -182,7 +182,7 @@ describe(_getStartAndEndCommands, function() {
182182
blueprintPath
183183
],
184184
{
185-
cwd: projectPath
185+
cwd: projectRoot
186186
}
187187
]
188188
]);
@@ -198,7 +198,7 @@ describe(_getStartAndEndCommands, function() {
198198
}
199199
});
200200

201-
expect(await createProject(cwd)).to.equal(projectPath);
201+
expect(await createProject(cwd)).to.equal(projectRoot);
202202

203203
expect(npxStub.args).to.deep.equal([[
204204
[
@@ -236,7 +236,7 @@ describe(_getStartAndEndCommands, function() {
236236
.withArgs(path.join(blueprintPath, 'package'))
237237
.returns({ keywords: ['ember-blueprint'] });
238238

239-
expect(await createProject(cwd)).to.equal(projectPath);
239+
expect(await createProject(cwd)).to.equal(projectRoot);
240240

241241
expect(npxStub.args).to.deep.equal([
242242
[
@@ -267,7 +267,7 @@ describe(_getStartAndEndCommands, function() {
267267
blueprintPath
268268
],
269269
{
270-
cwd: projectPath
270+
cwd: projectRoot
271271
}
272272
]
273273
]);
@@ -385,7 +385,7 @@ describe(_getStartAndEndCommands, function() {
385385
.withArgs(path.join(blueprintPath, 'package'))
386386
.returns({ keywords: ['ember-blueprint'] });
387387

388-
expect(await createProject(cwd)).to.equal(projectPath);
388+
expect(await createProject(cwd)).to.equal(projectRoot);
389389

390390
expect(spawnStub.args).to.deep.equal([[
391391
'node',
@@ -433,7 +433,7 @@ describe(_getStartAndEndCommands, function() {
433433
.withArgs(path.join(blueprintPath, 'package'))
434434
.returns({ keywords: ['ember-blueprint'] });
435435

436-
expect(await createProject(cwd)).to.equal(projectPath);
436+
expect(await createProject(cwd)).to.equal(projectRoot);
437437

438438
expect(spawnStub.args).to.deep.equal([
439439
[
@@ -463,7 +463,7 @@ describe(_getStartAndEndCommands, function() {
463463
blueprintPath
464464
],
465465
{
466-
cwd: projectPath
466+
cwd: projectRoot
467467
}
468468
]
469469
]);
@@ -493,7 +493,7 @@ describe(_getStartAndEndCommands, function() {
493493
.withArgs(path.join(blueprintPath, 'package'))
494494
.returns({ keywords: ['ember-blueprint'] });
495495

496-
expect(await createProject(cwd)).to.equal(projectPath);
496+
expect(await createProject(cwd)).to.equal(projectRoot);
497497

498498
expect(npxStub.args).to.deep.equal([[
499499
[
@@ -539,7 +539,7 @@ describe(_getStartAndEndCommands, function() {
539539
.withArgs(path.join(blueprintPath, 'package'))
540540
.returns({ keywords: ['ember-blueprint'] });
541541

542-
expect(await createProject(cwd)).to.equal(projectPath);
542+
expect(await createProject(cwd)).to.equal(projectRoot);
543543

544544
expect(npxStub.args).to.deep.equal([
545545
[
@@ -567,7 +567,7 @@ describe(_getStartAndEndCommands, function() {
567567
blueprintPath
568568
],
569569
{
570-
cwd: projectPath
570+
cwd: projectRoot
571571
}
572572
]
573573
]);
@@ -600,7 +600,7 @@ describe(_getStartAndEndCommands, function() {
600600
.withArgs(path.join(blueprintPath, 'package'))
601601
.returns({ keywords: ['ember-addon'] });
602602

603-
expect(await createProject(cwd)).to.equal(projectPath);
603+
expect(await createProject(cwd)).to.equal(projectRoot);
604604

605605
expect(spawnStub.args).to.deep.equal([
606606
[
@@ -651,7 +651,7 @@ describe(_getStartAndEndCommands, function() {
651651
.withArgs(path.join(blueprintPath, 'package'))
652652
.returns({ keywords: ['ember-addon'] });
653653

654-
expect(await createProject(cwd)).to.equal(projectPath);
654+
expect(await createProject(cwd)).to.equal(projectRoot);
655655

656656
expect(npxStub.args).to.deep.equal([
657657
[

0 commit comments

Comments
 (0)