forked from alexlafroscia/ember-steps
-
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
1 parent
d18b518
commit 8fda980
Showing
7 changed files
with
449 additions
and
42 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
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,12 @@ | ||
import Ember from 'ember'; | ||
import config from './config/environment'; | ||
|
||
const Router = Ember.Router.extend({ | ||
location: config.locationType, | ||
rootURL: config.rootURL | ||
}); | ||
|
||
Router.map(function() { | ||
}); | ||
|
||
export default Router; |
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,9 @@ | ||
{{#step-manager as |w|}} | ||
{{#w.step}} | ||
<h1>First Step</h1> | ||
{{/w.step}} | ||
|
||
{{#w.step}} | ||
<h1>Second Step</h1> | ||
{{/w.step}} | ||
{{/step-manager}} |
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,22 @@ | ||
/* eslint-env node, mocha */ | ||
|
||
'use strict'; | ||
|
||
const expect = require('chai').expect; | ||
const setupTest = require('ember-fastboot-addon-tests').setupTest; | ||
|
||
describe('FastBoot', function() { | ||
setupTest('fastboot'); | ||
|
||
it('renders the initially visible step', async function() { | ||
const res = await this.visit('/'); | ||
const { jQuery: jq, response } = res; | ||
|
||
expect(response.statusCode).to.equal(200); | ||
expect( | ||
jq('h1') | ||
.text() | ||
.trim() | ||
).to.equal('First Step'); | ||
}); | ||
}); |
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
Oops, something went wrong.