test: Add test for removing global links
test: Add test for removing global links

PR-URL: https://github.com/npm/npm/pull/10270
Fixes: #9980
Credit: da39a3ee5e6b4b0d3255bfef95601890afd80709@iarna

chadnickbok/npm,misterbyrne/npm,cchamberlain/npm,xalopp/npm,TimeToogo/npm,ekmartin/npm,TimeToogo/npm,princeofdarkness76/npm,misterbyrne/npm,Volune/npm,princeofdarkness76/npm,yibn2008/npm,DaveEmmerson/npm,kimshinelove/naver-npm,kemitchell/npm,segrey/npm,midniteio/npm,kimshinelove/naver-npm,kimshinelove/naver-npm,evocateur/npm,thomblake/npm,midniteio/npm,evocateur/npm,cchamberlain/npm,rsp/npm,TimeToogo/npm,lxe/npm,midniteio/npm,Volune/npm,haggholm/npm,DIREKTSPEED-LTD/npm,yodeyer/npm,kemitchell/npm,chadnickbok/npm,DaveEmmerson/npm,chadnickbok/npm,cchamberlain/npm-msys2,lxe/npm,thomblake/npm,yodeyer/npm,evocateur/npm,kemitchell/npm,misterbyrne/npm,ekmartin/npm,evanlucas/npm,ekmartin/npm,xalopp/npm,princeofdarkness76/npm,cchamberlain/npm-msys2,DIREKTSPEED-LTD/npm,cchamberlain/npm,thomblake/npm,cchamberlain/npm-msys2,haggholm/npm,Volune/npm,DaveEmmerson/npm,haggholm/npm,yibn2008/npm,xalopp/npm,segrey/npm,lxe/npm,yibn2008/npm,evanlucas/npm,segrey/npm,evanlucas/npm,DIREKTSPEED-LTD/npm,rsp/npm,yodeyer/npm,rsp/npm