@@ -142,9 +142,9 @@ describe("status_mapper", function()
142142 assert .equals (" +" , sym )
143143 end )
144144
145- it (" should map 'M ' to modified" , function ()
145+ it (" should map 'M ' to staged modified" , function ()
146146 local hl , sym = status_mapper .map (" M " , test_symbols )
147- assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED , hl )
147+ assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED_STAGED , hl )
148148 assert .equals (" ~" , sym )
149149 end )
150150
@@ -168,9 +168,9 @@ describe("status_mapper", function()
168168 end )
169169
170170 describe (" worktree status - second character" , function ()
171- it (" should map ' M' to modified" , function ()
171+ it (" should map ' M' to unstaged modified" , function ()
172172 local hl , sym = status_mapper .map (" M" , test_symbols )
173- assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED , hl )
173+ assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED_UNSTAGED , hl )
174174 assert .equals (" ~" , sym )
175175 end )
176176
@@ -190,7 +190,13 @@ describe("status_mapper", function()
190190
191191 it (" should prioritize index status for 'MD'" , function ()
192192 local hl , sym = status_mapper .map (" MD" , test_symbols )
193- assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED , hl )
193+ assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED_STAGED , hl )
194+ assert .equals (" ~" , sym )
195+ end )
196+
197+ it (" should prioritize staged modified for 'MM'" , function ()
198+ local hl , sym = status_mapper .map (" MM" , test_symbols )
199+ assert .equals (constants .HIGHLIGHT_GROUPS .MODIFIED_STAGED , hl )
194200 assert .equals (" ~" , sym )
195201 end )
196202
@@ -271,9 +277,9 @@ describe("status_mapper", function()
271277 assert .equals (constants .PRIORITY .ADDED , priority )
272278 end )
273279
274- it (" should return MODIFIED priority for 'M '" , function ()
280+ it (" should return staged modified priority for 'M '" , function ()
275281 local priority = status_mapper .get_priority (" M " )
276- assert .equals (constants .PRIORITY .MODIFIED , priority )
282+ assert .equals (constants .PRIORITY .MODIFIED_STAGED , priority )
277283 end )
278284
279285 it (" should return DELETED priority for 'D '" , function ()
@@ -293,9 +299,9 @@ describe("status_mapper", function()
293299 end )
294300
295301 describe (" worktree statuses" , function ()
296- it (" should return MODIFIED priority for ' M'" , function ()
302+ it (" should return unstaged modified priority for ' M'" , function ()
297303 local priority = status_mapper .get_priority (" M" )
298- assert .equals (constants .PRIORITY .MODIFIED , priority )
304+ assert .equals (constants .PRIORITY .MODIFIED_UNSTAGED , priority )
299305 end )
300306
301307 it (" should return DELETED priority for ' D'" , function ()
0 commit comments