Skip to content

Commit

Permalink
Update test for issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskello committed Jun 30, 2018
1 parent f550e83 commit a6a4cf8
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/data/match-path-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,12 @@ export const tests: ReadonlyArray<OneTest> = [
paths: {
"lib/*": ["location/*"]
},
existingPaths: [join("/root", "location", "mylib", "index.d.ts")],
existingPaths: [
join("/root", "location"),
join("/root", "location", "mylib"),
join("/root", "location", "mylib", "index.d.ts")
],
requestedModule: "lib/mylib",
expectedPath: undefined
},
{
name: "should not resolve typings file (index.d.ts) from star",
absoluteBaseUrl: "/root/",
paths: {
"*": ["*", "./types/*"]
},
existingPaths: [join("/root", "types", "mylib", "index.d.ts")],
requestedModule: "mylib",
expectedPath: undefined
}
];

0 comments on commit a6a4cf8

Please sign in to comment.