Skip to content

Commit 6c60105

Browse files
authored
Merge pull request #20880 from Windvis/cleanup-ember-cli-qunit-tests
2 parents 3261337 + a9c7b91 commit 6c60105

File tree

106 files changed

+483
-1644
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+483
-1644
lines changed

blueprints/acceptance-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ const stringUtils = require('ember-cli-string-utils');
77

88
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
99
const { modulePrefixForProject } = require('../-utils');
10-
const useTestFrameworkDetector = require('../test-framework-detector');
1110

12-
module.exports = useTestFrameworkDetector({
11+
module.exports = {
1312
description: 'Generates an acceptance test for a feature.',
1413

1514
shouldTransformTypeScript: true,
@@ -42,4 +41,4 @@ module.exports = useTestFrameworkDetector({
4241
destroyAppExists,
4342
};
4443
},
45-
});
44+
};

blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.js

-12
This file was deleted.

blueprints/component-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ const semver = require('semver');
88

99
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
1010
const { modulePrefixForProject } = require('../-utils');
11-
const useTestFrameworkDetector = require('../test-framework-detector');
1211

1312
function invocationFor(options) {
1413
let parts = options.entity.name.split('/');
1514
return parts.map((p) => stringUtil.classify(p)).join('::');
1615
}
1716

18-
module.exports = useTestFrameworkDetector({
17+
module.exports = {
1918
description: 'Generates a component integration or unit test.',
2019

2120
shouldTransformTypeScript: true,
@@ -118,4 +117,4 @@ module.exports = useTestFrameworkDetector({
118117
]);
119118
}
120119
},
121-
});
120+
};

blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.js

-31
This file was deleted.

blueprints/controller-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
const stringUtil = require('ember-cli-string-utils');
44

5-
const useTestFrameworkDetector = require('../test-framework-detector');
65
const path = require('path');
76

87
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
98
const { modulePrefixForProject } = require('../-utils');
109

11-
module.exports = useTestFrameworkDetector({
10+
module.exports = {
1211
description: 'Generates a controller unit test.',
1312

1413
shouldTransformTypeScript: true,
@@ -44,4 +43,4 @@ module.exports = useTestFrameworkDetector({
4443
},
4544
};
4645
},
47-
});
46+
};

blueprints/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js

-12
This file was deleted.

blueprints/helper-test/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const semver = require('semver');
66
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
77
const { modulePrefixForProject } = require('../-utils');
88

9-
const useTestFrameworkDetector = require('../test-framework-detector');
10-
11-
module.exports = useTestFrameworkDetector({
9+
module.exports = {
1210
description: 'Generates a helper integration test.',
1311

1412
shouldTransformTypeScript: true,
@@ -64,4 +62,4 @@ module.exports = useTestFrameworkDetector({
6462
]);
6563
}
6664
},
67-
});
65+
};

blueprints/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js

-15
This file was deleted.

blueprints/initializer-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ const path = require('path');
55

66
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
77
const { modulePrefixForProject } = require('../-utils');
8-
const useTestFrameworkDetector = require('../test-framework-detector');
98

10-
module.exports = useTestFrameworkDetector({
9+
module.exports = {
1110
description: 'Generates an initializer unit test.',
1211

1312
shouldTransformTypeScript: true,
@@ -37,4 +36,4 @@ module.exports = useTestFrameworkDetector({
3736
),
3837
};
3938
},
40-
});
39+
};

blueprints/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js

-25
This file was deleted.

blueprints/instance-initializer-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ const path = require('path');
55

66
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
77
const { modulePrefixForProject } = require('../-utils');
8-
const useTestFrameworkDetector = require('../test-framework-detector');
98

10-
module.exports = useTestFrameworkDetector({
9+
module.exports = {
1110
description: 'Generates an instance initializer unit test.',
1211

1312
shouldTransformTypeScript: true,
@@ -36,4 +35,4 @@ module.exports = useTestFrameworkDetector({
3635
),
3736
};
3837
},
39-
});
38+
};

blueprints/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js

-26
This file was deleted.

blueprints/mixin-test/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
const path = require('path');
44

5-
const useTestFrameworkDetector = require('../test-framework-detector');
6-
7-
module.exports = useTestFrameworkDetector({
5+
module.exports = {
86
description: 'Generates a mixin unit test.',
97

108
fileMapTokens() {
@@ -24,4 +22,4 @@ module.exports = useTestFrameworkDetector({
2422
friendlyTestName: ['Unit', 'Mixin', options.entity.name].join(' | '),
2523
};
2624
},
27-
});
25+
};

blueprints/mixin-test/qunit-files/__root__/__testType__/__name__-test.js

-12
This file was deleted.

blueprints/route-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
const path = require('path');
44
const stringUtil = require('ember-cli-string-utils');
55

6-
const useTestFrameworkDetector = require('../test-framework-detector');
76
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
87
const { modulePrefixForProject } = require('../-utils');
98

10-
module.exports = useTestFrameworkDetector({
9+
module.exports = {
1110
description: 'Generates a route unit test.',
1211

1312
shouldTransformTypeScript: true,
@@ -63,4 +62,4 @@ module.exports = useTestFrameworkDetector({
6362
moduleName: stringUtil.dasherize(moduleName),
6463
};
6564
},
66-
});
65+
};

blueprints/route-test/qunit-files/__root__/__testType__/__path__/__test__.js

-11
This file was deleted.

blueprints/service-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
44
const { modulePrefixForProject } = require('../-utils');
5-
const useTestFrameworkDetector = require('../test-framework-detector');
65

7-
module.exports = useTestFrameworkDetector({
6+
module.exports = {
87
description: 'Generates a service unit test.',
98

109
shouldTransformTypeScript: true,
@@ -31,4 +30,4 @@ module.exports = useTestFrameworkDetector({
3130
friendlyTestDescription: ['Unit', 'Service', options.entity.name].join(' | '),
3231
};
3332
},
34-
});
33+
};

blueprints/service-test/qunit-files/__root__/__testType__/__path__/__test__.js

-12
This file was deleted.

blueprints/test-framework-detector.js

-38
This file was deleted.

blueprints/util-test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ const path = require('path');
44

55
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
66
const { modulePrefixForProject } = require('../-utils');
7-
const useTestFrameworkDetector = require('../test-framework-detector');
87

9-
module.exports = useTestFrameworkDetector({
8+
module.exports = {
109
description: 'Generates a util unit test.',
1110

1211
shouldTransformTypeScript: true,
@@ -33,4 +32,4 @@ module.exports = useTestFrameworkDetector({
3332
modulePrefix: modulePrefixForProject(options.project),
3433
};
3534
},
36-
});
35+
};

blueprints/util-test/qunit-files/__root__/__testType__/__name__-test.js

-10
This file was deleted.

0 commit comments

Comments
 (0)