Add additional region fixture test

This commit is contained in:
Jordan Eldredge 2017-11-16 20:42:33 -08:00
parent decfc4f8ea
commit 9b0b2acc3b
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,5 @@
[Normal]
; This region info generated by Winamp region.txt generator which is made by Maxim.
; http://winamp.mwos.cjb.net
NumPoints=4,4,4,4
PointList=4,0 271,0 271,116 4,116 2,1 273,1 273,116 2,116 1,2 274,2 274,116 1,116 0,4 275,4 275,116 0,116

View file

@ -52,4 +52,11 @@ describe("regionParser", () => {
);
expect(regionParser(regionTxt)).toMatchSnapshot();
});
it("parses Satellite M's region.txt", () => {
const regionTxt = fs.readFileSync(
"./js/__tests__/fixtures/region_satellite.txt",
"utf8"
);
expect(regionParser(regionTxt)).toMatchSnapshot();
});
});