Skip to content

Commit

Permalink
Add isDefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dayo09 committed Nov 4, 2022
1 parent 18d4001 commit a425c45
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Tests/OneExplorer/ConfigObject.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ input_path=${modelName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.strictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -130,6 +131,7 @@ output_path=${productName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -158,6 +160,7 @@ input_path=${modelName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.strictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -191,6 +194,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -226,6 +230,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -260,6 +265,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -297,6 +303,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -342,6 +349,7 @@ output_path=dummy/dummy/../..//${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -384,6 +392,7 @@ output_path=/dummy/dummy/../..//${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -424,6 +433,7 @@ output_path=/${productPath2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -468,6 +478,7 @@ output_path=/${productPath2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -509,6 +520,7 @@ output_path=/${productPath2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 1);
assert.strictEqual(configObj?.getBaseModelsExists.length, 0);

Expand Down Expand Up @@ -542,6 +554,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -574,6 +587,7 @@ output_path=${productName2}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -602,6 +616,7 @@ command=${productName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -631,6 +646,7 @@ command=${productName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -666,6 +682,7 @@ command=--save-temps --save-allocations ${productName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand Down Expand Up @@ -704,6 +721,7 @@ command=--save-chrome-trace ${traceName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.notStrictEqual(configObj?.getProducts.length, 0);

Expand All @@ -730,6 +748,7 @@ command=--save-chrome-trace ${traceName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down Expand Up @@ -758,6 +777,7 @@ commands=--save-chrome-trace ${traceName}

// Validation
{
assert.isDefined(configObj);
assert.strictEqual(configObj?.getBaseModels.length, 0);
assert.strictEqual(configObj?.getProducts.length, 0);
}
Expand Down

0 comments on commit a425c45

Please sign in to comment.