Skip to content

Commit

Permalink
Add failing test for sinon.match.string
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Jun 29, 2023
1 parent 3e6ce3d commit 957a3f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/match.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

var assert = require("assert");
var sinon = require("sinon");
var samsam = require("@sinonjs/samsam");
var referee = require("./referee");
var anonymousFunction = require("./test-helper/anonymous-function-string");
Expand Down Expand Up @@ -43,6 +44,15 @@ describe("match", function () {
}
);
});

it("should pass sinon.match.string in object", function () {
var object = { foo: 1, bar: "test" };

referee.assert.equals(object, {
foo: 1,
bar: sinon.match.string,
});
});
});

context("with refute.equals", function () {
Expand Down

0 comments on commit 957a3f9

Please sign in to comment.