Created
August 18, 2016 16:30
-
-
Save cball/99073a884808ce620d8744a21ae2b17d to your computer and use it in GitHub Desktop.
Default ember-cli-mocha acceptance test blueprint
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
// tests/acceptance/user-should-something.js | |
import { | |
describe, | |
it, | |
beforeEach, | |
afterEach | |
} from 'mocha'; | |
import { expect } from 'chai'; | |
import startApp from '../helpers/start-app'; | |
import destroyApp from '../helpers/destroy-app'; | |
describe('Acceptance: UserShouldSomething', function() { | |
let application; | |
beforeEach(function() { | |
application = startApp(); | |
}); | |
afterEach(function() { | |
destroyApp(application); | |
}); | |
it('can visit /user-should-something', function() { | |
visit('/user-should-something'); | |
andThen(function() { | |
expect(currentPath()).to.equal('user-should-something'); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment