aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Harley2018-02-08 18:37:23 +0000
committerTom Harley2018-02-08 18:37:23 +0000
commit42b4435bf61e1cd41abc8a83dfb1a8f960d6fd23 (patch)
tree543d97bf335035c4d553ae6a3b2c513ee4127ffb /test
parentRevert "Revert "Merge branch 'testing'"" (diff)
downloadmedicine-42b4435bf61e1cd41abc8a83dfb1a8f960d6fd23.tar.gz
medicine-42b4435bf61e1cd41abc8a83dfb1a8f960d6fd23.zip

removed usage of rough in tests

Diffstat (limited to 'test')
-rw-r--r--test/options.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/options.test.ts b/test/options.test.ts
index 8622c73..542d38a 100644
--- a/test/options.test.ts
+++ b/test/options.test.ts
@@ -14,7 +14,7 @@ describe('Object Matching:', () => {
let matchee = {
a: "yes"
};
- options.rough(template, matchee).should.be.true;
+ options.match(template, matchee).should.be.true;
});
it('accepts objects with superfluous properties', () => {
let template = {
@@ -24,7 +24,7 @@ describe('Object Matching:', () => {
a: 40,
b: 20
};
- options.rough(template, matchee).should.be.true;
+ options.match(template, matchee).should.be.true;
});
it('rejects objects missing some properties', () => {
let template = {
@@ -35,7 +35,7 @@ describe('Object Matching:', () => {
let matchee = {
b: 5
};
- options.rough(template, matchee).should.be.false;
+ options.match(template, matchee).should.be.false;
});
it('accepts objects that omit not_present properties', () => {
let template = {
@@ -46,7 +46,7 @@ describe('Object Matching:', () => {
let matchee = {
a: new Function()
};
- options.rough(template, matchee).should.be.true;
+ options.match(template, matchee).should.be.true;
});
});
});