mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add unittest for parsing --lib in tsconfig
This commit is contained in:
@@ -82,5 +82,25 @@ namespace ts {
|
||||
it("returns object with error when json is invalid", () => {
|
||||
assertParseError("invalid");
|
||||
});
|
||||
|
||||
it("returns object when users correctly specify library", () => {
|
||||
assertParseResult(
|
||||
`{
|
||||
"compilerOptions": {
|
||||
"library": "es5"
|
||||
}
|
||||
}`, {
|
||||
config: { compilerOptions: { library: "es5" } }
|
||||
});
|
||||
|
||||
assertParseResult(
|
||||
`{
|
||||
"compilerOptions": {
|
||||
"library": "es5,es6"
|
||||
}
|
||||
}`, {
|
||||
config: { compilerOptions: { library: "es5,es6" } }
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user