Update datemath mock to lodash 4.

This commit is contained in:
Alexander Zobnin
2016-11-09 15:00:36 +03:00
parent 68e2f5c9ae
commit a8079316d7
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ export function parseDateMath(mathString, time, roundUp) {
}
unit = mathString.charAt(i++);
if (!_.contains(units, unit)) {
if (!_.includes(units, unit)) {
return undefined;
} else {
if (type === 0) {

View File

@@ -4,7 +4,7 @@
import prunk from 'prunk';
import {jsdom} from 'jsdom';
import chai from 'chai';
import sinon from 'sinon';
// import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import * as dateMath from './modules/datemath';