Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEPENDENCY: upgrade to ember-cli v2.18
- Loading branch information
Showing
15 changed files
with
435 additions
and
154 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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
module.exports = function(/* environment, appConfig */) { | ||
|
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,4 +1,3 @@ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); | ||
|
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,4 +1,3 @@ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
module.exports = { | ||
|
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 |
---|---|---|
@@ -1,34 +1,29 @@ | ||
import { run } from '@ember/runloop'; | ||
import { test, module } from 'qunit'; | ||
import startApp from '../helpers/start-app'; | ||
import hasEmberVersion from 'ember-test-helpers/has-ember-version'; | ||
|
||
var application; | ||
|
||
if (!hasEmberVersion(2, 12)) { | ||
module('Acceptance | es2015 class e2e test', { | ||
beforeEach() { | ||
application = startApp(); | ||
}, | ||
afterEach() { | ||
run(application, 'destroy'); | ||
} | ||
}); | ||
|
||
module('Acceptance | es2015 class e2e test', { | ||
beforeEach() { | ||
application = startApp(); | ||
}, | ||
afterEach() { | ||
run(application, 'destroy'); | ||
} | ||
test('es2015 class based components dispatch & render state from redux', function(assert) { | ||
visit('/clazz'); | ||
andThen(() => { | ||
assert.equal(currentURL(), '/clazz'); | ||
assert.equal(find('.clazz-state').text(), '0'); | ||
assert.equal(find('.clazz-up').text(), 'up'); | ||
}); | ||
|
||
test('es2015 class based components dispatch & render state from redux', function(assert) { | ||
visit('/clazz'); | ||
andThen(() => { | ||
assert.equal(currentURL(), '/clazz'); | ||
assert.equal(find('.clazz-state').text(), '0'); | ||
assert.equal(find('.clazz-up').text(), 'up'); | ||
}); | ||
click('.clazz-up'); | ||
andThen(() => { | ||
assert.equal(currentURL(), '/clazz'); | ||
assert.equal(find('.clazz-state').text(), '1'); | ||
assert.equal(find('.clazz-color').text(), 'orange'); | ||
}); | ||
click('.clazz-up'); | ||
andThen(() => { | ||
assert.equal(currentURL(), '/clazz'); | ||
assert.equal(find('.clazz-state').text(), '1'); | ||
assert.equal(find('.clazz-color').text(), 'orange'); | ||
}); | ||
|
||
} | ||
}); |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
browsers: [ | ||
'ie 9', | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import Application from '../app'; | ||
import config from '../config/environment'; | ||
import { setApplication } from '@ember/test-helpers'; | ||
import { start } from 'ember-qunit'; | ||
|
||
setApplication(Application.create({ autoboot: false })); | ||
setApplication(Application.create(config.APP)); | ||
|
||
start(); |
Oops, something went wrong.