jest-diff
Advanced tools
Comparing version 19.1.0-alpha.eed82034 to 19.2.0-alpha.993e64af
@@ -11,11 +11,14 @@ /** | ||
'use strict'; | ||
'use strict';var _require$plugins = | ||
const ReactElementPlugin = require('pretty-format/build/plugins/ReactElement'); | ||
const ReactTestComponentPlugin = require('pretty-format/build/plugins/ReactTestComponent'); | ||
const AsymmetricMatcherPlugin = require('pretty-format/build/plugins/AsymmetricMatcher'); | ||
const ImmutablePlugins = require('pretty-format/build/plugins/ImmutablePlugins'); | ||
require('pretty-format').plugins;const ReactElement = _require$plugins.ReactElement,ReactTestComponent = _require$plugins.ReactTestComponent,AsymmetricMatcher = _require$plugins.AsymmetricMatcher,HTMLElement = _require$plugins.HTMLElement,Immutable = _require$plugins.Immutable; | ||
const chalk = require('chalk'); | ||
@@ -26,12 +29,10 @@ const diffStrings = require('./diffStrings');var _require = | ||
require('./constants');const NO_DIFF_MESSAGE = _require2.NO_DIFF_MESSAGE,SIMILAR_MESSAGE = _require2.SIMILAR_MESSAGE; | ||
const PLUGINS = [ | ||
ReactTestComponentPlugin, | ||
ReactElementPlugin, | ||
AsymmetricMatcherPlugin]. | ||
concat(ImmutablePlugins); | ||
ReactTestComponent, | ||
ReactElement, | ||
AsymmetricMatcher, | ||
HTMLElement]. | ||
concat(Immutable); | ||
const FORMAT_OPTIONS = { | ||
@@ -72,5 +73,7 @@ plugins: PLUGINS }; | ||
if (expectedType !== getType(b)) { | ||
return ' Comparing two different types of values.' + | ||
` Expected ${chalk.green(expectedType)} but ` + | ||
`received ${chalk.red(getType(b))}.`; | ||
return ( | ||
' Comparing two different types of values.' + | ||
` Expected ${chalk.green(expectedType)} but ` + | ||
`received ${chalk.red(getType(b))}.`); | ||
} | ||
@@ -77,0 +80,0 @@ |
{ | ||
"name": "jest-diff", | ||
"version": "19.1.0-alpha.eed82034", | ||
"version": "19.2.0-alpha.993e64af", | ||
"repository": { | ||
@@ -10,8 +10,9 @@ "type": "git", | ||
"main": "build/index.js", | ||
"browser": "build-es5/index.js", | ||
"dependencies": { | ||
"chalk": "^1.1.3", | ||
"diff": "^3.2.0", | ||
"jest-matcher-utils": "^19.1.0-alpha.eed82034", | ||
"pretty-format": "^19.1.0-alpha.eed82034" | ||
"jest-matcher-utils": "^19.2.0-alpha.993e64af", | ||
"pretty-format": "^19.2.0-alpha.993e64af" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
17399
8
472
+ Addedjest-matcher-utils@19.2.0-alpha.993e64af(transitive)
+ Addedpretty-format@19.2.0-alpha.993e64af(transitive)
- Removedjest-matcher-utils@19.1.0-alpha.eed82034(transitive)
- Removedpretty-format@19.1.0-alpha.eed82034(transitive)