aboutsummaryrefslogtreecommitdiff
path: root/tests/document-matchers.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-04-22 13:45:13 +0100
committerMichael Williamson <mike@zwobble.org>2014-04-22 13:45:13 +0100
commit3985f63ba8451a06db149f059ca1845e398d1024 (patch)
treeca51755c35788341b5ab04357706861736dcd014 /tests/document-matchers.tests.js
parent4423acf4ff5124585d5d2483bd0651fa5c29e083 (diff)
Remove list builder methods on document matchers
Diffstat (limited to 'tests/document-matchers.tests.js')
-rw-r--r--tests/document-matchers.tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/document-matchers.tests.js b/tests/document-matchers.tests.js
index 070e0bf..bb51c69 100644
--- a/tests/document-matchers.tests.js
+++ b/tests/document-matchers.tests.js
@@ -20,7 +20,7 @@ describe("document-matchers", function() {
});
test("ordered-list(index) matches an ordered list with specified level index", function() {
- var matcher = documentMatchers.paragraph().orderedList(1);
+ var matcher = documentMatchers.paragraph({list: {isOrdered: true, levelIndex: 1}});
assert.ok(!matcher.matches(new Paragraph()));
assert.ok(matcher.matches(new Paragraph([], {numbering: {level: 1, isOrdered: true}})));
assert.ok(!matcher.matches(new Paragraph([], {numbering: {level: 0, isOrdered: true}})));
@@ -28,14 +28,14 @@ describe("document-matchers", function() {
});
test("unordered-list(index) matches an unordered list with specified level index", function() {
- var matcher = documentMatchers.paragraph().unorderedList(1);
+ var matcher = documentMatchers.paragraph({list: {isOrdered: false, levelIndex: 1}});
assert.ok(!matcher.matches(new Paragraph()));
assert.ok(matcher.matches(new Paragraph([], {numbering: {level: 1, isOrdered: false}})));
assert.ok(!matcher.matches(new Paragraph([], {numbering: {level: 1, isOrdered: true}})));
});
test("matchers for lists with index 0 do not match elements that are not lists", function() {
- var matcher = documentMatchers.paragraph().orderedList(0);
+ var matcher = documentMatchers.paragraph({list: {isOrdered: true, levelIndex: 0}});
assert.ok(!matcher.matches(new Paragraph()));
});
});