Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade QUnit to 2.0 #134

Merged
merged 1 commit into from
Aug 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@
"broccoli-merge-trees": "^1.1.0",
"ember-cli-babel": "^5.1.5",
"ember-cli-version-checker": "^1.1.4",
"ember-qunit": "^0.4.18",
"ember-qunit": "^1.0.0-beta.1",
"qunit-notifications": "^0.1.1",
"qunitjs": "^1.20.0",
"qunitjs": "^2.0.1",
"resolve": "^1.1.6",
"rsvp": "^3.2.1"
},
"devDependencies": {
"ember-cli": "^2.4.2",
"ember-cli-htmlbars": "^1.0.3",
"ember-load-initializers": "^0.5.1",
"ember-resolver": "^2.0.3",
"ember-try": "^0.2.2",
"loader.js": "^4.0.1"
Expand Down
14 changes: 14 additions & 0 deletions tests/acceptance/adapter-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Ember from 'ember';
import moduleForAcceptance from '../helpers/module-for-acceptance';
import { test } from 'qunit';

moduleForAcceptance('Acceptance | Adapter');

test('starting and stoping async behavior works', function(assert) {
assert.expect(2);

visit('/');
andThen(() => assert.ok(true));
click('.other-page-link');
andThen(() => assert.ok(true));
});
1 change: 1 addition & 0 deletions tests/dummy/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Router = Ember.Router.extend({
});

Router.map(function() {
this.route('other-page');
});

export default Router;
2 changes: 2 additions & 0 deletions tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h2 id="title">Welcome to Ember</h2>

{{#link-to "other-page" class="other-page-link"}}Go to some other page{{/link-to}}

{{outlet}}
1 change: 1 addition & 0 deletions tests/dummy/app/templates/other-page.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h3>Some other page</h3>
3 changes: 3 additions & 0 deletions vendor/ember-cli-qunit/test-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
}

ready(function() {
var QUnitAdapter = require('ember-qunit').QUnitAdapter;
Ember.Test.adapter = QUnitAdapter.create();

var testLoaderModulePath = 'ember-cli-test-loader/test-support/index';

if (!requirejs.entries[testLoaderModulePath]) {
Expand Down