Skip to content

Commit

Permalink
fix test issue on case sensitive file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed Oct 13, 2020
1 parent baa4c33 commit 845d0ea
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genomic-reader",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions test/BigWigReader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import { streamToArray } from "./testUtils";
const testBWFilename = "testbw.bigwig";
const testBWFixedStepName = "test.fixedstep.bigwig";
const testBBFilename = "testbb.bigbed";
const testBBNarrowPeakFilename = "testbb-narrowpeak.bigBed";
const testBBNarrowPeakFilename = "testbb-narrowpeak.bigbed";
const testBBBroadPeakFilename = "testbb-broadpeak.bigbed";
const testBBMethylFilename = "testbb-methyl.bigbed";
const testBBIdrPeakFilename = "testbb-idrpeak.bigbed";
const testBBTssFilename = "testbb-tss.bigbed";
const testLargeBWFilename = "testbw-large.bigwig";


describe("BigWigReader", () => {
it("should get header", async () => {
const loader = new AxiosDataLoader(`http://localhost:8001/${testBWFilename}`, Axios.create());
Expand All @@ -29,7 +28,6 @@ describe("BigWigReader", () => {
const loader = new AxiosDataLoader(`http://localhost:8001/${testBWFilename}`, Axios.create());
const reader = new BigWigReader(loader);
const data = await reader.readBigWigData("chr14", 19_485_000, "chr14", 20_000_100);

expect(data.length).toBe(83);
expect(data[0]).toEqual({
chr: "chr14",
Expand Down Expand Up @@ -127,7 +125,6 @@ describe("BigWigReader", () => {
expect(data[0].exons![0].end).toBe(9_928_911);
});


it("should read unzoomed narrow peak bigbed data", async () => {
const loader = new AxiosDataLoader(`http://localhost:8001/${testBBNarrowPeakFilename}`, Axios.create());
const reader = new BigWigReader(loader);
Expand Down

0 comments on commit 845d0ea

Please sign in to comment.