The Lassaigne's extract is boiled with conc. HNO3 while testing for halogens. By doing so It:
Decomposes Na2S and NaCN, if formed
Na2S and NaCN are decomposed on heating with HNO3 to form H2S and HCN in gaseous phase otherwise they will give precipitate with AgNO3
NaCN+HNO3⟶NaNO3+HCN↑
Na2S+2HNO3⟶2NaNO3+H2S