Skip to content

Commit

Permalink
Fix Legacy Mocha Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobisjan committed Jul 8, 2022
1 parent e47ad1c commit f405ce6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ember-cli-fastboot/test/request-details-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const path = require('path');
const chai = require('chai');
const expect = chai.expect;
const RSVP = require('rsvp');
Expand All @@ -11,8 +12,8 @@ function injectMiddlewareAddon(app) {
pkg.devDependencies['body-parser'] =
process.env.npm_package_devDependencies_body_parser;
pkg.dependencies = pkg.dependencies || {};
pkg.dependencies['fastboot-express-middleware'] =
process.env.npm_package_dependencies_fastboot_express_middleware;
pkg.dependencies['fastboot'] = `file:${path.resolve(__dirname, '../../fastboot')}`
pkg.dependencies['fastboot-express-middleware'] = `file:${path.resolve(__dirname, '../../fastboot-express-middleware')}`
pkg['ember-addon'] = {
paths: ['lib/post-middleware'],
};
Expand Down

0 comments on commit f405ce6

Please sign in to comment.