mirror of
https://github.com/documize/community.git
synced 2025-08-09 07:25:23 +02:00
Add helpers to moduleForAcceptance and added helper names to prevent jshint warnings
This commit is contained in:
parent
5a4dc1534f
commit
6ca10b277c
2 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,8 @@ export default function(name, options = {}) {
|
||||||
module(name, {
|
module(name, {
|
||||||
beforeEach() {
|
beforeEach() {
|
||||||
this.application = startApp();
|
this.application = startApp();
|
||||||
|
stubAudit(this);
|
||||||
|
stubSession(this);
|
||||||
|
|
||||||
if (options.beforeEach) {
|
if (options.beforeEach) {
|
||||||
options.beforeEach.apply(this, arguments);
|
options.beforeEach.apply(this, arguments);
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import Application from '../../app';
|
import Application from '../../app';
|
||||||
import config from '../../config/environment';
|
import config from '../../config/environment';
|
||||||
|
import './stub-session';
|
||||||
|
import './stub-audit';
|
||||||
|
import './user-login';
|
||||||
|
|
||||||
export default function startApp(attrs) {
|
export default function startApp(attrs) {
|
||||||
let application;
|
let application;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue