-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
64 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "bf-nav", | ||
"dependencies": { | ||
"jquery": "^1.11.1", | ||
"ember": "1.10.0", | ||
"ember-data": "1.0.0-beta.16", | ||
"ember-resolver": "~0.1.14", | ||
"loader.js": "ember-cli/loader.js#3.2.0", | ||
"ember": "1.11.1", | ||
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3", | ||
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3", | ||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2", | ||
"ember-qunit": "0.2.8", | ||
"ember-data": "1.0.0-beta.16.1", | ||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4", | ||
"ember-qunit": "0.3.1", | ||
"ember-qunit-notifications": "0.0.7", | ||
"ember-resolver": "~0.1.15", | ||
"jquery": "^1.11.1", | ||
"loader.js": "ember-cli/loader.js#3.2.0", | ||
"qunit": "~1.17.1" | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
moduleForComponent, | ||
test | ||
} from 'ember-qunit'; | ||
|
||
moduleForComponent('bf-nav', { | ||
// specify the other units that are required for this test | ||
// needs: ['component:foo', 'helper:bar'] | ||
}); | ||
|
||
test('it renders', function(assert) { | ||
assert.expect(2); | ||
|
||
// creates the component instance | ||
var component = this.subject(); | ||
assert.equal(component._state, 'preRender'); | ||
|
||
// renders the component to the page | ||
this.render(); | ||
assert.equal(component._state, 'inDOM'); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Ember from 'ember'; | ||
import { initialize } from '../../../initializers/bf-nav'; | ||
import { module, test } from 'qunit'; | ||
|
||
var container, application; | ||
|
||
module('BfNavInitializer', { | ||
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); | ||
}); |