Basic user/session integration
This commit is contained in:
parent
5048fb7695
commit
2b6d7fecbb
4 changed files with 108 additions and 22 deletions
23
tests/unit/initializers/custom-session-test.js
Normal file
23
tests/unit/initializers/custom-session-test.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import Ember from 'ember';
|
||||
import { initialize } from '../../../initializers/custom-session';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
var container, application;
|
||||
|
||||
module('CustomSessionInitializer', {
|
||||
beforeEach: function() {
|
||||
Ember.run(function() {
|
||||
application = Ember.Application.create();
|
||||
container = application.__container__;
|
||||
application.deferReadiness();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it works', function(assert) {
|
||||
initialize(container, application);
|
||||
|
||||
// you would normally confirm the results of the initializer here
|
||||
assert.ok(true);
|
||||
});
|
Reference in a new issue