mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Add additional region fixture test
This commit is contained in:
parent
decfc4f8ea
commit
9b0b2acc3b
2 changed files with 12 additions and 0 deletions
5
js/__tests__/fixtures/region_satellite.txt
Executable file
5
js/__tests__/fixtures/region_satellite.txt
Executable 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
|
||||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue