Skip to content

Commit ee565e5

Browse files
authored
Merge pull request #390 from ember-fastboot/fix-tests
Fix tests
2 parents 8cb1542 + 89a739b commit ee565e5

24 files changed

Lines changed: 497 additions & 528 deletions
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1-
var fs = require('fs');
2-
var path = require('path');
3-
var RSVP = require('rsvp');
1+
'use strict';
2+
3+
const fs = require('fs');
4+
const path = require('path');
5+
const RSVP = require('rsvp');
46

57
module.exports = {
6-
name: "fastboot-by-default",
7-
description: "Install `ember fastboot` as `npm start`.",
8+
name: 'fastboot-by-default',
9+
description: 'Install `ember fastboot` as `npm start`.',
810

9-
normalizeEntityName: function() {
11+
normalizeEntityName() {
1012
// this prevents an error when the entityName is
1113
// not specified (since that doesn't actually matter
1214
// to us
1315
},
1416

15-
install: function(options) {
16-
var project = options.project;
17-
var packagePath = path.join(project.root, 'package.json');
18-
var contents = fs.readFileSync(packagePath, { encoding: 'utf8' });
19-
var pkg = JSON.parse(contents);
17+
install(options) {
18+
let project = options.project;
19+
let packagePath = path.join(project.root, 'package.json');
20+
let contents = fs.readFileSync(packagePath, { encoding: 'utf8' });
21+
let pkg = JSON.parse(contents);
2022

2123
pkg.scripts.start = 'ember fastboot --serve-assets';
2224

23-
var newContents = JSON.stringify(pkg, null, 2);
25+
let newContents = JSON.stringify(pkg, null, 2);
2426
fs.writeFileSync(packagePath, newContents, { encoding: 'utf8' });
2527

26-
return RSVP.resolve();
28+
return RSVP.Promise.resolve();
2729
}
2830
};

0 commit comments

Comments
 (0)