Skip to content

Commit db4d9b3

Browse files
committed
Add unittests:: on all unittests describe blocks for easy run
1 parent 53e2507 commit db4d9b3

File tree

91 files changed

+155
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+155
-155
lines changed

src/testRunner/unittests/asserts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("assert", () => {
2+
describe("unittests:: assert", () => {
33
it("deepEqual", () => {
44
assert.throws(() => assert.deepEqual(createNodeArray([createIdentifier("A")]), createNodeArray([createIdentifier("B")])));
55
assert.throws(() => assert.deepEqual(createNodeArray([], /*hasTrailingComma*/ true), createNodeArray([], /*hasTrailingComma*/ false)));

src/testRunner/unittests/base64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("base64", () => {
2+
describe("unittests:: base64", () => {
33
describe("base64decode", () => {
44
it("can decode input strings correctly without needing a host implementation", () => {
55
const tests = [

src/testRunner/unittests/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("builder", () => {
2+
describe("unittests:: builder", () => {
33
it("emits dependent files", () => {
44
const files: NamedSourceText[] = [
55
{ name: "/a.ts", text: SourceText.New("", 'import { b } from "./b";', "") },

src/testRunner/unittests/compilerCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("compilerCore", () => {
2+
describe("unittests:: compilerCore", () => {
33
describe("equalOwnProperties", () => {
44
it("correctly equates objects", () => {
55
assert.isTrue(equalOwnProperties({}, {}));

src/testRunner/unittests/config/commandLineParsing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("config:: commandLineParsing:: parseCommandLine", () => {
2+
describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => {
33

44
function assertParseResult(commandLine: string[], expectedParsedCommandLine: ParsedCommandLine) {
55
const parsed = parseCommandLine(commandLine);
@@ -367,7 +367,7 @@ namespace ts {
367367
});
368368
});
369369

370-
describe("config:: commandLineParsing:: parseBuildOptions", () => {
370+
describe("unittests:: config:: commandLineParsing:: parseBuildOptions", () => {
371371
function assertParseResult(commandLine: string[], expectedParsedBuildCommand: ParsedBuildCommand) {
372372
const parsed = parseBuildCommand(commandLine);
373373
const parsedBuildOptions = JSON.stringify(parsed.buildOptions);

src/testRunner/unittests/config/configurationExtension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ namespace ts {
208208
}
209209
}
210210

211-
describe("config:: configurationExtension", () => {
211+
describe("unittests:: config:: configurationExtension", () => {
212212
forEach<[string, string, fakes.ParseConfigHost], void>([
213213
["under a case insensitive host", caseInsensitiveBasePath, caseInsensitiveHost],
214214
["under a case sensitive host", caseSensitiveBasePath, caseSensitiveHost]

src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("config:: convertCompilerOptionsFromJson", () => {
2+
describe("unittests:: config:: convertCompilerOptionsFromJson", () => {
33
const formatDiagnosticHost: FormatDiagnosticsHost = {
44
getCurrentDirectory: () => "/apath/",
55
getCanonicalFileName: createGetCanonicalFileName(/*useCaseSensitiveFileNames*/ true),

src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace ts {
22
interface ExpectedResult { typeAcquisition: TypeAcquisition; errors: Diagnostic[]; }
3-
describe("config:: convertTypeAcquisitionFromJson", () => {
3+
describe("unittests:: config:: convertTypeAcquisitionFromJson", () => {
44
function assertTypeAcquisition(json: any, configFileName: string, expectedResult: ExpectedResult) {
55
assertTypeAcquisitionWithJson(json, configFileName, expectedResult);
66
assertTypeAcquisitionWithJsonNode(json, configFileName, expectedResult);

src/testRunner/unittests/config/initializeTSConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace ts {
2-
describe("config:: initTSConfig", () => {
2+
describe("unittests:: config:: initTSConfig", () => {
33
function initTSConfigCorrectly(name: string, commandLinesArgs: string[]) {
44
describe(name, () => {
55
const commandLine = parseCommandLine(commandLinesArgs);

src/testRunner/unittests/config/matchFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ namespace ts {
143143
return createFileDiagnostic(file, start, length, diagnosticMessage, arg0);
144144
}
145145

146-
describe("config:: matchFiles", () => {
146+
describe("unittests:: config:: matchFiles", () => {
147147
it("with defaults", () => {
148148
const json = {};
149149
const expected: ParsedCommandLine = {

0 commit comments

Comments
 (0)