mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 06:22:16 +00:00
Fix a few ember init fails.
Turns out ember, although defaulting to ECMAScript 6, can't actually write ES6...
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {module} from 'qunit';
|
||||
import Ember from 'ember';
|
||||
import startApp from '../helpers/start-app';
|
||||
import destroyApp from '../helpers/destroy-app';
|
||||
import {module} from "qunit";
|
||||
import Ember from "ember";
|
||||
import startApp from "../helpers/start-app";
|
||||
import destroyApp from "../helpers/destroy-app";
|
||||
|
||||
const {RSVP: {Promise}} = Ember;
|
||||
|
||||
@@ -17,8 +17,8 @@ export default function (name, options = {}) {
|
||||
|
||||
afterEach() {
|
||||
let afterEach = options.afterEach && options.afterEach.apply(this, arguments);
|
||||
return Promise.resolve(afterEach).then(() = > destroyApp(this.application)
|
||||
)
|
||||
};
|
||||
return Promise.resolve(afterEach).then(() => destroyApp(this.application)
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user