Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #134 from trentmwillis/qunit-2
Browse files Browse the repository at this point in the history
Upgrade QUnit to 2.0
  • Loading branch information
rwjblue authored Aug 18, 2016
2 parents 6d824be + b26ca0a commit 884a35c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
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

0 comments on commit 884a35c

Please sign in to comment.