Skip to content

Commit

Permalink
fix the legacy mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrostew committed Nov 30, 2022
1 parent 03c8d40 commit 4d8cac3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/ember-cli-fastboot/test/fastboot-config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ describe('FastBoot config', function () {

return app
.create('fastboot-config', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
.then(function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ describe('FastBootLocation Configuration', function () {

return app
.create('fastboot-location-config', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
.then(function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
3 changes: 2 additions & 1 deletion packages/ember-cli-fastboot/test/fastboot-location-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ describe('FastBootLocation', function () {

return app
.create('fastboot-location', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
.then(function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
3 changes: 2 additions & 1 deletion packages/ember-cli-fastboot/test/package-json-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ describe('generating package.json', function () {
before(function () {
return customApp
.create('customized-outputpaths', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
.then(function () {
customApp.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return customApp.run('npm', 'install');
})
Expand Down
3 changes: 2 additions & 1 deletion packages/ember-cli-fastboot/test/request-details-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function injectMiddlewareAddon(app) {
};
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
}
Expand All @@ -32,7 +34,6 @@ describe('request details', function () {

return app
.create('request', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
Expand Down
3 changes: 2 additions & 1 deletion packages/ember-cli-fastboot/test/root-url-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ describe('rootUrl acceptance', function () {

return app
.create('root-url', {
skipNpm: true,
emberVersion: 'latest',
emberDataVersion: 'latest',
})
.then(function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down

0 comments on commit 4d8cac3

Please sign in to comment.