jasmine-diff

WebJar for jasmine-diff

Лицензия

Лицензия

MIT
Категории

Категории

ASM Библиотеки уровня приложения Bytecode Manipulation
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

jasmine-diff
Последняя версия

Последняя версия

0.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

jasmine-diff
WebJar for jasmine-diff
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/jimf/jasmine-diff

Скачать jasmine-diff

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/jasmine-diff/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jasmine-diff</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/jasmine-diff/
implementation 'org.webjars.npm:jasmine-diff:0.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/jasmine-diff/
implementation ("org.webjars.npm:jasmine-diff:0.1.3")
'org.webjars.npm:jasmine-diff:jar:0.1.3'
<dependency org="org.webjars.npm" name="jasmine-diff" rev="0.1.3">
  <artifact name="jasmine-diff" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='jasmine-diff', version='0.1.3')
)
libraryDependencies += "org.webjars.npm" % "jasmine-diff" % "0.1.3"
[org.webjars.npm/jasmine-diff "0.1.3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : diff jar [3.2.0,4)

Модули Проекта

Данный проект не имеет модулей.

Jasmine Diff

Decorate default Jasmine matchers to provide additional diff output in error messages.

npm Version Build Status Test Coverage Dependency Status

screenshot

Jasmine Diff takes the standard Jasmine matchers and decorates them, adding diff output where it makes sense, i.e., when comparing objects, arrays and long strings, where noticing differences by eye with the standard Jasmine output can be cumbersome. By tackling this problem directly at the matcher level, this plugin should be compatible with all of your favorite Jasmine reporters.

Installation

Install using npm:

$ npm install jasmine-diff --save-dev

Or for a manual/browser installation, grab the pre-built jasmine-diff.js and embed after Jasmine but before your tests.

Usage

Integrate the matchers with your test environment (currently only Jasmine 2.x supported):

beforeEach(function () {
  jasmine.addMatchers(require('jasmine-diff')(jasmine, {
    // Specify options here
  }))
})

Available Options

colors (boolean, default: false)

Enables colored diff output.

inline (boolean, default: false)

Display inline diffs (best paired with colors:true).

Changelog

0.1.3

  • Use background colors for inline:true, colors:true (#8)

0.1.2

  • Fix actual/expected order in default matcher output (#6)

0.1.1

  • Fix colors bleeding into line numbers (#5)

0.1.0

  • Initial release

License

MIT

Версии библиотеки

Версия
0.1.3