diff --git a/js/__tests__/fixtures/region_satellite.txt b/js/__tests__/fixtures/region_satellite.txt new file mode 100755 index 00000000..57dd570d --- /dev/null +++ b/js/__tests__/fixtures/region_satellite.txt @@ -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 diff --git a/js/regionParser.test.js b/js/regionParser.test.js index 7cd2eafa..51d0c219 100644 --- a/js/regionParser.test.js +++ b/js/regionParser.test.js @@ -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(); + }); });