Przeglądaj źródła

moment-2.8 compatibility, automated tests, suppress warnings

Adam Shaw 11 lat temu
rodzic
commit
b2201620a9
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      tests/lib/jasmine-ext.js

+ 6 - 0
tests/lib/jasmine-ext.js

@@ -1,6 +1,12 @@
 
 
 beforeEach(function() {
 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({
 	jasmine.addMatchers({
 		toEqualMoment: function() {
 		toEqualMoment: function() {
 			return {
 			return {