Skip to content

Commit 52a0014

Browse files
committed
Update blueprints to latest annotation changes
1 parent 058ea18 commit 52a0014

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

blueprints/feature-index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

33
const annotationMap = {
4-
acceptance: '@application',
5-
integration: '@rendering',
6-
unit: '@context'
4+
acceptance: '@setupApplicationTest',
5+
integration: '@setupRenderingTest',
6+
unit: '@setupTest'
77
};
88

99
module.exports = {

blueprints/mocha/ember-cli-yadda/files/tests/helpers/yadda-annotations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ function setupScenario(featureAnnotations, scenarioAnnotations) {
6060
}
6161

6262
function setupYaddaTest(annotations) {
63-
if (annotations.application) {
63+
if (annotations.setupapplicationtest) {
6464
return setupApplicationTest;
6565
}
66-
if (annotations.rendering) {
66+
if (annotations.setuprenderingtest) {
6767
return setupRenderingTest;
6868
}
69-
if (annotations.context) {
69+
if (annotations.setuptest) {
7070
return setupTest;
7171
}
7272
}

blueprints/qunit/ember-cli-yadda/files/tests/helpers/yadda-annotations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ function setupScenario(featureAnnotations, scenarioAnnotations) {
6060
}
6161

6262
function setupYaddaTest(annotations) {
63-
if (annotations.application) {
63+
if (annotations.setupapplicationtest) {
6464
return setupApplicationTest;
6565
}
66-
if (annotations.rendering) {
66+
if (annotations.setuprenderingtest) {
6767
return setupRenderingTest;
6868
}
69-
if (annotations.context) {
69+
if (annotations.setuptest) {
7070
return setupTest;
7171
}
7272
}

node-tests/fixtures/acceptance/foo.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@application
1+
@setupApplicationTest
22
Feature: foo
33

44
Scenario: the one where I type ember g feature

node-tests/fixtures/integration/foo.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@rendering
1+
@setupRenderingTest
22
Feature: foo
33

44
Scenario: the one where I type ember g feature

node-tests/fixtures/main/mocha/helpers/yadda-annotations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ function setupScenario(featureAnnotations, scenarioAnnotations) {
6060
}
6161

6262
function setupYaddaTest(annotations) {
63-
if (annotations.application) {
63+
if (annotations.setupapplicationtest) {
6464
return setupApplicationTest;
6565
}
66-
if (annotations.rendering) {
66+
if (annotations.setuprenderingtest) {
6767
return setupRenderingTest;
6868
}
69-
if (annotations.context) {
69+
if (annotations.setuptest) {
7070
return setupTest;
7171
}
7272
}

node-tests/fixtures/main/qunit/helpers/yadda-annotations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ function setupScenario(featureAnnotations, scenarioAnnotations) {
6060
}
6161

6262
function setupYaddaTest(annotations) {
63-
if (annotations.application) {
63+
if (annotations.setupapplicationtest) {
6464
return setupApplicationTest;
6565
}
66-
if (annotations.rendering) {
66+
if (annotations.setuprenderingtest) {
6767
return setupRenderingTest;
6868
}
69-
if (annotations.context) {
69+
if (annotations.setuptest) {
7070
return setupTest;
7171
}
7272
}

node-tests/fixtures/unit/foo.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@context
1+
@setupTest
22
Feature: foo
33

44
Scenario: the one where I type ember g feature

0 commit comments

Comments
 (0)