Skip to content

Commit fe2aa67

Browse files
author
Kelly Selden
committed
failing test for getBaseBlueprint blueprint.location
1 parent 2a403b9 commit fe2aa67

File tree

5 files changed

+33
-7
lines changed

5 files changed

+33
-7
lines changed

test/fixtures/blueprint/app/npm-app/local/my-app/config/ember-cli-update.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
{
22
"schemaVersion": 0,
33
"packages": [
4+
{
5+
"name": "ember-cli-update-git-blueprint-test",
6+
"location": "../local-blueprint",
7+
"version": "0.0.2",
8+
"blueprints": [
9+
{
10+
"name": "ember-cli-update-git-blueprint-test",
11+
"isBaseBlueprint": true,
12+
"options": [
13+
"--supplied-option=foo"
14+
]
15+
}
16+
]
17+
},
418
{
519
"name": "ember-cli-update-npm-blueprint-test",
620
"version": "0.0.23",
721
"blueprints": [
822
{
9-
"name": "ember-cli-update-npm-blueprint-test",
10-
"isBaseBlueprint": true
23+
"name": "ember-cli-update-npm-blueprint-test"
1124
}
1225
]
1326
}

test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
{
22
"schemaVersion": 0,
33
"packages": [
4+
{
5+
"name": "ember-cli-update-git-blueprint-test",
6+
"location": "../local-blueprint",
7+
"version": "0.0.2",
8+
"blueprints": [
9+
{
10+
"name": "ember-cli-update-git-blueprint-test",
11+
"isBaseBlueprint": true,
12+
"options": [
13+
"--supplied-option=foo"
14+
]
15+
}
16+
]
17+
},
418
{
519
"name": "ember-cli-update-npm-blueprint-test",
620
"version": "0.0.24",
721
"blueprints": [
822
{
9-
"name": "ember-cli-update-npm-blueprint-test",
10-
"isBaseBlueprint": true
23+
"name": "ember-cli-update-npm-blueprint-test"
1124
}
1225
]
1326
}

test/integration/check-for-blueprint-updates-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe(checkForBlueprintUpdates, function() {
2323
let urlBlueprint = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/remote-app/local/my-app/config/ember-cli-update.json')).blueprints[0];
2424

2525
// up to date test
26-
let npmBlueprint = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[0];
26+
let npmBlueprint = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[1];
2727

2828
await initBlueprint({
2929
fixturesPath: 'test/fixtures/blueprint/app/local',

test/integration/download-package-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe(downloadPackage, function() {
6969
let {
7070
name,
7171
version: range
72-
} = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[0];
72+
} = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[1];
7373

7474
let downloadedPackage = await downloadPackage(name, null, range);
7575

test/integration/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ applicable codemods: ember-modules-codemod, ember-qunit-codemod, ember-test-help
449449
it('can update an npm blueprint', async function() {
450450
let {
451451
name
452-
} = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[0];
452+
} = (await loadSafeBlueprintFile('test/fixtures/blueprint/app/npm-app/merge/my-app/config/ember-cli-update.json')).blueprints[1];
453453

454454
let {
455455
status

0 commit comments

Comments
 (0)