This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global getOwner */ | |
import Em from 'ember'; | |
import _ from 'lodash/lodash'; | |
export default Em.Mixin.create({ | |
'query-params': Em.inject.service(), | |
qpRouteName: null, | |
enteredRoute: false, | |
onInit: Em.on('init', function() { | |
this.set('queryParamDefaults', this.currentQPs()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mirage/config.js | |
import Em from 'ember'; | |
import utils from 'ember-cli-mirage/shorthands/utils'; | |
import serializerDefs from 'crowdly-pa/tests/helpers/serializer-defs'; | |
import SerializerMachine from 'crowdly-pa/tests/helpers/serializer-machine'; | |
import { pluralize } from 'ember-inflector'; | |
export default function() { | |
this.timing = 50; // delay for each request, automatically set to 0 during testing | |
} |