aboutsummaryrefslogtreecommitdiff
path: root/test/styles
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-19 12:40:59 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-19 12:40:59 +0000
commit3be9f580c9b44fbd179158b08f1ec85c9356a4e9 (patch)
tree5ff6d629bf8575a34ed4daf7394b85ab05e86681 /test/styles
parent2df392487052d543fe412383ef6d29886678edbf (diff)
Add exact match to startsWith test case
Diffstat (limited to 'test/styles')
-rw-r--r--test/styles/document-matchers.tests.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/styles/document-matchers.tests.js b/test/styles/document-matchers.tests.js
index fb2025d..5ce3f72 100644
--- a/test/styles/document-matchers.tests.js
+++ b/test/styles/document-matchers.tests.js
@@ -58,6 +58,7 @@ test("equalTo matcher is case insensitive", function() {
test("startsWith matches strings with prefix", function() {
var matcher = documentMatchers.startsWith("Heading");
+ assert.ok(matcher.operator(matcher.operand, "Heading"));
assert.ok(matcher.operator(matcher.operand, "Heading 1"));
assert.ok(!matcher.operator(matcher.operand, "Custom Heading"));
assert.ok(!matcher.operator(matcher.operand, "Head"));