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

Can't find variable: Symbol in node_modules/ng-redux/dist/ng-redux.js #141

Closed
raajamalik opened this issue Jul 20, 2017 · 1 comment
Closed

Comments

@raajamalik
Copy link

raajamalik commented Jul 20, 2017

Hello,

I am facing this issue while running testcases:

ReferenceError: Can't find variable: Symbol in node_modules/ng-redux/dist/ng-redux.js (line 1)

To be precise, it failed at the below highlighted line:
this.createStoreWith = function(o, i, c, a) {
.....
.....
}, this.$get = function(o) {
for (var u = void 0, i = [], a = n, f = Array.isArray(a), s = 0, a = f ? a : aSymbol.iterator;;) {

I see a, the fourth argument to createStoreWith function is INITIAL state, which is not being passed in testcases. May be that is why it is failing here. Do, we have to mock this to run the testcases?

Also, if I mock ngRedux like below, then the test case pass:

$provide.value('$ngRedux', {
subscribe: angular.noop,
getState: function() {
return {
property: {
loadedFiles: angular.noop,
properties: angular.noop
}
};
}
});

Somehow, it is not identifying Symbol. It used to run earlier. Any help would be much appreciated.

@AntJanus
Copy link
Collaborator

AntJanus commented Aug 31, 2017

Should be fixed with 3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants