From b2201620a96dd044452b9eb4e2aeaad83f78b704 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Mon, 4 Aug 2014 23:05:09 -0700 Subject: [PATCH] moment-2.8 compatibility, automated tests, suppress warnings --- tests/lib/jasmine-ext.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/lib/jasmine-ext.js b/tests/lib/jasmine-ext.js index 25ecbcd..4a2d991 100644 --- a/tests/lib/jasmine-ext.js +++ b/tests/lib/jasmine-ext.js @@ -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 {