moment-2.8 compatibility, automated tests, suppress warnings

This commit is contained in:
Adam Shaw
2014-08-04 23:05:09 -07:00
parent 564ce15882
commit b2201620a9
+6
View File
@@ -1,6 +1,12 @@
beforeEach(function() {
// don't show warnings about deprecated methods like `moment.lang`, etc.
// at some point we'll require moment version above 2.8.
// until then, it's too annoying to support two versions.
// (not the best place for this)
moment.suppressDeprecationWarnings = true;
jasmine.addMatchers({
toEqualMoment: function() {
return {