You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.equal(multiMap.size,expectedKeys.length,`${caption}: incorrect size of map: Actual keys: ${arrayFrom(multiMap.keys())} Expected: ${expectedKeys}`);
4025
+
for(constnameofexpectedKeys){
4026
+
assert.isTrue(multiMap.has(name),`${caption} is expected to contain ${name}, actual keys: ${arrayFrom(multiMap.keys())}`);
4027
+
assert.equal(multiMap.get(name).length,1,`${caption} is expected to have just one entry for key ${name}, actual entry: ${multiMap.get(name)}`);
4028
+
}
4029
+
}
4030
+
4031
+
it("when calling goto definition of module",()=>{
4032
+
constclientFile: FileOrFolder={
4033
+
path: "/a/b/controllers/vessels/client.ts",
4034
+
content: `
4035
+
import { Vessel } from '~/models/vessel';
4036
+
const v = new Vessel();
4037
+
`
4038
+
};
4039
+
constanotherModuleFile: FileOrFolder={
4040
+
path: "/a/b/utils/db.ts",
4041
+
content: "export class Bookshelf { }"
4042
+
};
4043
+
constmoduleFile: FileOrFolder={
4044
+
path: "/a/b/models/vessel.ts",
4045
+
content: `
4046
+
import { Bookshelf } from '~/utils/db';
4047
+
export class Vessel extends Bookshelf {}
4048
+
`
4049
+
};
4050
+
consttsconfigFile: FileOrFolder={
4051
+
path: "/a/b/tsconfig.json",
4052
+
content: JSON.stringify({
4053
+
compilerOptions: {
4054
+
target: "es6",
4055
+
module: "es6",
4056
+
baseUrl: "./",// all paths are relative to the baseUrl
4057
+
paths: {
4058
+
"~/*": ["*"]// resolve any `~/foo/bar` to `<baseUrl>/foo/bar`
0 commit comments