-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EMBER]: start upgrade to 2.8 and remove DS check
- Loading branch information
Showing
22 changed files
with
212 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ | |
"strict": false, | ||
"white": false, | ||
"eqnull": true, | ||
"esnext": true, | ||
"esversion": 6, | ||
"unused": true | ||
} |
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,19 @@ | ||
export let objectAssign = Object.assign || function objectAssign(target) { | ||
'use strict'; | ||
if (target == null) { | ||
throw new TypeError('Cannot convert undefined or null to object'); | ||
} | ||
|
||
target = Object(target); | ||
for (var index = 1; index < arguments.length; index++) { | ||
var source = arguments[index]; | ||
if (source != null) { | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; |
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,12 +1,10 @@ | ||
{ | ||
"name": "ember-infinity", | ||
"dependencies": { | ||
"ember": "~2.4.1", | ||
"ember-cli-shims": "0.1.0", | ||
"ember-cli-test-loader": "0.2.2", | ||
"ember-qunit-notifications": "0.1.0", | ||
"ember": "~2.8.0", | ||
"ember-cli-shims": "0.1.1", | ||
"pretender": "^0.9.0", | ||
"Faker": "~3.0.1", | ||
"babel-polyfill": "~0.0.1" | ||
"ember-cli-test-loader": "0.2.2" | ||
} | ||
} |
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,23 +1,6 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
|
||
var checker = require('ember-cli-version-checker'); | ||
|
||
module.exports = { | ||
name: 'ember-infinity', | ||
|
||
init: function() { | ||
if (this._super.init) { | ||
this._super.init.apply(this, arguments); | ||
} | ||
checker.assertAbove(this, '0.2.0'); | ||
}, | ||
|
||
included: function(app) { | ||
this.addons.forEach(function(addon){ | ||
if (addon.name === "ember-version-is") { | ||
addon.included.apply(addon, [app]); | ||
} | ||
}); | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -47,6 +47,6 @@ | |
"strict": false, | ||
"white": false, | ||
"eqnull": true, | ||
"esnext": true, | ||
"esversion": 6, | ||
"unused": true | ||
} |
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,32 @@ | ||
import { test } from 'qunit'; | ||
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; | ||
import buildServer from '../helpers/fake-album-server'; | ||
import assertDetails from '../helpers/assert-acceptance-details'; | ||
|
||
let server; | ||
|
||
moduleForAcceptance('Acceptance: Infinity Route - custom store route', { | ||
beforeEach() { | ||
server = buildServer(); | ||
this.customStore = this.application.__container__.lookup('service:custom-store'); | ||
for (let x = 0; x <= 5; x++) { | ||
this.customStore.push('custom-model', { id: x }); | ||
} | ||
}, | ||
afterEach() { | ||
server.shutdown(); | ||
delete this.customStore; | ||
} | ||
}); | ||
|
||
test('it works with custom store', function(assert) { | ||
visit('/custom-store'); | ||
|
||
andThen(() => { | ||
assertDetails(assert, { | ||
title: 'Listing Posts', | ||
listLength: 6, | ||
reachedInfinity: true | ||
}); | ||
}); | ||
}); |
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
17 changes: 7 additions & 10 deletions
17
tests/acceptance/infinity-route-with-embedded-route-test.js
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.