mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-04 05:03:25 +00:00
test: migrate JSONMatcher to new chai API
Already using it for other matchers.
This commit is contained in:
parent
68bc49a812
commit
e24fa02b2c
@ -1,6 +1,8 @@
|
||||
export default function(chai, utils) {
|
||||
|
||||
utils.addMethod(chai.Assertion.prototype, 'jsonEqual', function(comparison, filter) {
|
||||
var Assertion = chai.Assertion;
|
||||
|
||||
Assertion.addMethod('jsonEqual', function(comparison, filter) {
|
||||
|
||||
var actual = JSON.stringify(this._obj, filter, ' ');
|
||||
var expected = JSON.stringify(comparison, filter, ' ');
|
||||
|
Loading…
x
Reference in New Issue
Block a user