@@ -45,7 +45,7 @@ describe("loadConfig", () => {
4545 }
4646 } ;
4747 writeFileSync ( join ( TEST_DIR , ".token-limits.json" ) , JSON . stringify ( testConfig ) ) ;
48-
48+
4949 const config = loadConfig ( TEST_DIR ) ;
5050 expect ( config . defaults [ "*.md" ] ) . toBe ( 1500 ) ;
5151 expect ( config . defaults [ "SKILL.md" ] ) . toBe ( 3000 ) ;
@@ -54,15 +54,15 @@ describe("loadConfig", () => {
5454
5555 it ( "returns defaults for invalid JSON" , ( ) => {
5656 writeFileSync ( join ( TEST_DIR , ".token-limits.json" ) , "not valid json" ) ;
57-
57+
5858 const config = loadConfig ( TEST_DIR ) ;
5959 expect ( config . defaults ) . toBeDefined ( ) ;
6060 expect ( config . defaults [ "*.md" ] ) . toBeDefined ( ) ;
6161 } ) ;
6262
6363 it ( "returns defaults for config missing defaults field" , ( ) => {
6464 writeFileSync ( join ( TEST_DIR , ".token-limits.json" ) , JSON . stringify ( { overrides : { } } ) ) ;
65-
65+
6666 const config = loadConfig ( TEST_DIR ) ;
6767 expect ( config . defaults ) . toBeDefined ( ) ;
6868 } ) ;
@@ -118,7 +118,7 @@ describe("getLimitForFile", () => {
118118 } ,
119119 overrides : { }
120120 } ;
121-
121+
122122 const result = getLimitForFile ( "plugin/skills/my-skill/SKILL.md" , configWithMultiplePatterns , "/root" ) ;
123123 // SKILL.md exact filename match wins over globstar pattern due to specificity scoring
124124 // (no wildcards = +10000 points)
@@ -144,7 +144,7 @@ describe("findMarkdownFiles", () => {
144144 writeFileSync ( join ( TEST_DIR , "README.md" ) , "# Test" ) ;
145145 writeFileSync ( join ( TEST_DIR , "GUIDE.md" ) , "# Guide" ) ;
146146 writeFileSync ( join ( TEST_DIR , "script.ts" ) , 'console.log("hi")' ) ;
147-
147+
148148 const files = findMarkdownFiles ( TEST_DIR ) ;
149149 expect ( files . length ) . toBe ( 2 ) ;
150150 expect ( files . some ( f => f . endsWith ( "README.md" ) ) ) . toBe ( true ) ;
@@ -153,7 +153,7 @@ describe("findMarkdownFiles", () => {
153153
154154 it ( "finds .mdx files" , ( ) => {
155155 writeFileSync ( join ( TEST_DIR , "component.mdx" ) , "# MDX" ) ;
156-
156+
157157 const files = findMarkdownFiles ( TEST_DIR ) ;
158158 expect ( files . length ) . toBe ( 1 ) ;
159159 expect ( files [ 0 ] . endsWith ( "component.mdx" ) ) . toBe ( true ) ;
@@ -164,7 +164,7 @@ describe("findMarkdownFiles", () => {
164164 writeFileSync ( join ( TEST_DIR , "root.md" ) , "# Root" ) ;
165165 writeFileSync ( join ( TEST_DIR , "sub" , "sub.md" ) , "# Sub" ) ;
166166 writeFileSync ( join ( TEST_DIR , "sub" , "deep" , "deep.md" ) , "# Deep" ) ;
167-
167+
168168 const files = findMarkdownFiles ( TEST_DIR ) ;
169169 expect ( files . length ) . toBe ( 3 ) ;
170170 } ) ;
@@ -173,7 +173,7 @@ describe("findMarkdownFiles", () => {
173173 mkdirSync ( join ( TEST_DIR , "node_modules" ) ) ;
174174 writeFileSync ( join ( TEST_DIR , "README.md" ) , "# Test" ) ;
175175 writeFileSync ( join ( TEST_DIR , "node_modules" , "pkg.md" ) , "# Package" ) ;
176-
176+
177177 const files = findMarkdownFiles ( TEST_DIR ) ;
178178 expect ( files . length ) . toBe ( 1 ) ;
179179 expect ( files [ 0 ] . endsWith ( "README.md" ) ) . toBe ( true ) ;
@@ -183,7 +183,7 @@ describe("findMarkdownFiles", () => {
183183 mkdirSync ( join ( TEST_DIR , ".git" ) ) ;
184184 writeFileSync ( join ( TEST_DIR , "README.md" ) , "# Test" ) ;
185185 writeFileSync ( join ( TEST_DIR , ".git" , "config.md" ) , "# Config" ) ;
186-
186+
187187 const files = findMarkdownFiles ( TEST_DIR ) ;
188188 expect ( files . length ) . toBe ( 1 ) ;
189189 } ) ;
@@ -196,7 +196,7 @@ describe("findMarkdownFiles", () => {
196196 it ( "returns empty array for directory with no markdown files" , ( ) => {
197197 writeFileSync ( join ( TEST_DIR , "script.ts" ) , "code" ) ;
198198 writeFileSync ( join ( TEST_DIR , "data.json" ) , "{}" ) ;
199-
199+
200200 const files = findMarkdownFiles ( TEST_DIR ) ;
201201 expect ( files ) . toEqual ( [ ] ) ;
202202 } ) ;
0 commit comments