From 424419a0c261cb882cbabe3297ae6c7107cfc7c2 Mon Sep 17 00:00:00 2001
From: Levi Buzolic <levibuzolic@gmail.com>
Date: Thu, 15 Aug 2024 20:55:06 +1000
Subject: [PATCH] Add test case for functions

---
 tests.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests.js b/tests.js
index 00111cd..cc2d822 100644
--- a/tests.js
+++ b/tests.js
@@ -24,6 +24,10 @@ ruleTester.run('no-only-tests', rules['no-only-tests'], {
       options: [{focus: ['focus']}],
       code: 'test.only("Options will exclude this from being caught", function() {});',
     },
+    {
+      options: [{functions: ['fit', 'xit']}],
+      code: 'it("Options will exclude this from being caught", function() {});',
+    },
   ],
 
   invalid: [
@@ -194,6 +198,11 @@ ruleTester.run('no-only-tests', rules['no-only-tests'], {
       output: 'Then("Some assertion", function() {});',
       errors: [{message: 'Then.only not permitted'}],
     },
+    {
+      options: [{functions: ['fit', 'xit']}],
+      code: 'xit("No skipped tests", function() {});',
+      errors: [{message: 'xit not permitted'}],
+    },
   ],
 });