-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Phantom 2.1 - Tests Fail on Object.assign, ember-resolver missing, and more - All Works in Chrome #273
Comments
Sorry to bother you all, but does anyone have any ideas? I'd really love to have Phantom working so I can automate my build testing ... any ideas? :-) |
It looks like you may need an Object.assign polyfil Question: |
Hmmm....something like Re: |
Mmmmmmmmmmm kay! Wow, that actually worked. I had to put the following in my Here's what I added in a // This polyfill from https://www.npmjs.com/package/phantomjs-polyfill-object-assign
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill
if (typeof Object.assign != 'function') {
(function () {
Object.assign = function (target) {
'use strict';
if (target === undefined || target === null) {
throw new TypeError('Cannot convert undefined or null to object');
}
var output = Object(target);
for (var index = 1; index < arguments.length; index++) {
var source = arguments[index];
if (source !== undefined && source !== null) {
for (var nextKey in source) {
if (source.hasOwnProperty(nextKey)) {
output[nextKey] = source[nextKey];
}
}
}
}
return output;
};
})();
} |
Hey everyone!
Got a REALLY Weird problem that I've spent the last several hours trying to Google for answers - with no luck.
Okay, so here's the TL;DR of it all:
ember test --server
- All tests run fine in the browser but console reports tests fail in PhantomRunning
npm test
(orember test
) from the console produces a myrid of errors, all with very odd Phantom errors, such as the following:What I've tried so far:
bower clear cache && bower update && bower install
- no luck there eitherAny ideas, anyone? Thanks in advance for the help!
Here's the versions I'm testing with:
And here's my packages I'm using from
packages.json
:And, finally, the exact output from the
npm test
command:The text was updated successfully, but these errors were encountered: