diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-19 12:40:59 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-19 12:40:59 +0000 |
| commit | 3be9f580c9b44fbd179158b08f1ec85c9356a4e9 (patch) | |
| tree | 5ff6d629bf8575a34ed4daf7394b85ab05e86681 | |
| parent | 2df392487052d543fe412383ef6d29886678edbf (diff) | |
Add exact match to startsWith test case
| -rw-r--r-- | test/styles/document-matchers.tests.js | 1 |
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")); |
