We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using AngularJS 1.5.5 application with following moment libs added - moment - v2.13.0 moment-timezone - v0.5.13
I don't face any issue while running the application with the following code in app.js in browser moment.tz.setDefault("Asia/Singapore");
moment.tz.setDefault("Asia/Singapore");
But the same line throws error while I'm running my specs written in Jasmine v2.5.2 using karma v.^1.4.0. The error is :
TypeError: Cannot read property 'setDefault' of undefined
This is how my karma.conf.js - files attribute looks like -
'vendor/assets/bower_components/moment/moment.js', 'vendor/assets/bower_components/moment-timezone/moment-timezone.js', 'vendor/assets/bower_components/moment-timezone/builds/moment-timezone-with-data.js', 'vendor/assets/bower_components/moment-timezone/builds/moment-timezone-with-data-2012-2022.js', 'vendor/assets/bower_components/angular-mocks/angular-mocks.js',
The text was updated successfully, but these errors were encountered:
Same problem here, but I'm running the tests with Jest. Version 0.5.13 works fine.
0.5.13
Sorry, something went wrong.
@satyaki1 Do you have any resolution for it. I am in the same boat.
@vpratti No luck. @ellenaua @mj1856 Any clue on this?
No branches or pull requests
I am using AngularJS 1.5.5 application with following moment libs added -
moment - v2.13.0
moment-timezone - v0.5.13
I don't face any issue while running the application with the following code in app.js in browser
moment.tz.setDefault("Asia/Singapore");
But the same line throws error while I'm running my specs written in Jasmine v2.5.2 using karma v.^1.4.0. The error is :
This is how my karma.conf.js - files attribute looks like -
The text was updated successfully, but these errors were encountered: