From 3be9f580c9b44fbd179158b08f1ec85c9356a4e9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 19 Nov 2016 12:40:59 +0000 Subject: Add exact match to startsWith test case --- test/styles/document-matchers.tests.js | 1 + 1 file changed, 1 insertion(+) 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")); -- cgit v1.2.3